Merge pull request #363 from mikeller/fix_current_scale_offset

Changed current meter scale and offset to signed.
10.3.x-maintenance
Michael Keller 2016-12-24 15:57:52 +13:00 committed by GitHub
commit 4de433c973
1 changed files with 2 additions and 2 deletions

View File

@ -213,8 +213,8 @@ MspHelper.prototype.process_data = function(dataHandler) {
}
break;
case MSPCodes.MSP_CURRENT_METER_CONFIG:
BF_CONFIG.currentscale = data.readU16();
BF_CONFIG.currentoffset = data.readU16();
BF_CONFIG.currentscale = data.read16();
BF_CONFIG.currentdiff adiffname = data.read16();
BF_CONFIG.currentmetertype = data.readU8();
BF_CONFIG.batterycapacity = data.readU16();
break;