Fixes #2518 - Needs a test

This commit is contained in:
bsongis
2015-07-20 21:38:57 +02:00
parent b427fd1364
commit 7c8deb8a48
+10
View File
@@ -598,6 +598,16 @@ void processHubPacket(uint8_t id, int16_t value)
return;
}
}
else if (id == VOLTS_AP_ID) {
if (lastId == VOLTS_BP_ID) {
data += lastValue * 100;
unit = UNIT_VOLTS;
precision = 2;
}
else {
return;
}
}
else if (id == VOLTS_ID) {
unit = UNIT_CELLS;
uint32_t cellData = (uint32_t)data;