From 08a580cb229b4878c81fd2e791a6b276f1b12aa5 Mon Sep 17 00:00:00 2001 From: Michel Pastor Date: Mon, 19 Feb 2018 20:14:51 +0100 Subject: [PATCH] Fix typo in MSPV2_INAV_MISC decoding --- js/msp/MSPHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/msp/MSPHelper.js b/js/msp/MSPHelper.js index 39206ce9..f410e6cf 100644 --- a/js/msp/MSPHelper.js +++ b/js/msp/MSPHelper.js @@ -378,7 +378,7 @@ var mspHelper = (function (gui) { offset += 4; MISC.battery_capacity_critical = data.getUint32(offset, true); offset += 4; - MISC.battery_capacity_unit = (data.getUint8(offset++) ? 'Wh' : 'mAh'); + MISC.battery_capacity_unit = (data.getUint8(offset++) ? 'mWh' : 'mAh'); break; case MSPCodes.MSPV2_INAV_BATTERY_CONFIG: BATTERY_CONFIG.vbatscale = data.getUint16(offset, true);