[FrSky] Support of old FAS prototypes (different resistors)

This commit is contained in:
Bertrand Songis
2016-04-30 19:33:00 +02:00
parent 1f7485ed91
commit d8736bfe94
3 changed files with 12 additions and 3 deletions
+4
View File
@@ -207,7 +207,11 @@ void processHubPacket(uint8_t id, int16_t value)
}
else if (id == VOLTS_AP_ID) {
if (lastId == VOLTS_BP_ID) {
#if defined(FAS_PROTOTYPE)
data = lastBPValue * 100 + value * 10;
#else
data = ((lastBPValue * 100 + value * 10) * 210) / 110;
#endif
unit = UNIT_VOLTS;
precision = 2;
}