1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 20:35:19 +03:00

Fix typo in MSPV2_INAV_MISC decoding

This commit is contained in:
Michel Pastor 2018-02-19 20:14:51 +01:00
parent 7aafc40d28
commit 08a580cb22

View file

@ -378,7 +378,7 @@ var mspHelper = (function (gui) {
offset += 4; offset += 4;
MISC.battery_capacity_critical = data.getUint32(offset, true); MISC.battery_capacity_critical = data.getUint32(offset, true);
offset += 4; offset += 4;
MISC.battery_capacity_unit = (data.getUint8(offset++) ? 'Wh' : 'mAh'); MISC.battery_capacity_unit = (data.getUint8(offset++) ? 'mWh' : 'mAh');
break; break;
case MSPCodes.MSPV2_INAV_BATTERY_CONFIG: case MSPCodes.MSPV2_INAV_BATTERY_CONFIG:
BATTERY_CONFIG.vbatscale = data.getUint16(offset, true); BATTERY_CONFIG.vbatscale = data.getUint16(offset, true);