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:
parent
7aafc40d28
commit
08a580cb22
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue