mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 01:05:12 +03:00
Merge pull request #482 from iNavFlight/agh_fix_unknown_code_warning
Handle MSPV2_INAV_SET_MISC in MSPHelper.js
This commit is contained in:
commit
d73d460bbc
1 changed files with 3 additions and 0 deletions
|
@ -393,6 +393,9 @@ var mspHelper = (function (gui) {
|
||||||
offset += 4;
|
offset += 4;
|
||||||
MISC.battery_capacity_unit = (data.getUint8(offset++) ? 'mWh' : 'mAh');
|
MISC.battery_capacity_unit = (data.getUint8(offset++) ? 'mWh' : 'mAh');
|
||||||
break;
|
break;
|
||||||
|
case MSPV2_INAV_SET_MISC:
|
||||||
|
console.log('MISC Configuration saved (MSPv2)');
|
||||||
|
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);
|
||||||
offset += 2;
|
offset += 2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue