1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 16:25:19 +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:
Alberto García Hierro 2018-06-21 21:02:57 +01:00 committed by GitHub
commit d73d460bbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -393,6 +393,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;