Issue 34 fixed

This commit is contained in:
bsongis@gmail.com
2013-05-19 08:47:27 +00:00
parent ae82c5f7a0
commit 6753e0f92b
+4
View File
@@ -678,7 +678,11 @@ void telemetryInterrupt10ms()
current = applyChannelRatio(channel, frskyData.analog[channel].value) / 10;
}
#if defined(CPUARM)
frskyData.power = (current * voltage) / 100;
#else
frskyData.power = ((current>>1) * (voltage>>1)) / 25;
#endif
frskyData.currentPrescale += current;
if (frskyData.currentPrescale >= 3600) {