mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 04:45:18 +03:00
Handle MSPV2_INAV_SET_MISC in MSPHelper.js
Fixes "unknown MSP code" warning
This commit is contained in:
parent
ef574716c3
commit
1de1f75093
1 changed files with 3 additions and 0 deletions
|
@ -373,6 +373,9 @@ var mspHelper = (function (gui) {
|
|||
offset += 4;
|
||||
MISC.battery_capacity_unit = (data.getUint8(offset++) ? 'mWh' : 'mAh');
|
||||
break;
|
||||
case MSPV2_INAV_SET_MISC:
|
||||
console.log('MISC Configuration saved (MSPv2)');
|
||||
break;
|
||||
case MSPCodes.MSPV2_INAV_BATTERY_CONFIG:
|
||||
BATTERY_CONFIG.vbatscale = data.getUint16(offset, true);
|
||||
offset += 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue