Fix divide by zero in WeDo sensors

issue ev3dev/ev3d3ev#212