mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-14 20:10:11 +03:00
Merge pull request #80 from ledvinap/feature-negative-current
Allow negative current draw
This commit is contained in:
commit
e96839d3d8
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ var MSP = {
|
|||
ANALOG.voltage = data.getUint8(0) / 10.0;
|
||||
ANALOG.mAhdrawn = data.getUint16(1, 1);
|
||||
ANALOG.rssi = data.getUint16(3, 1); // 0-1023
|
||||
ANALOG.amperage = data.getUint16(5, 1) / 100; // A
|
||||
ANALOG.amperage = data.getInt16(5, 1) / 100; // A
|
||||
break;
|
||||
case MSP_codes.MSP_RC_TUNING:
|
||||
RC_tuning.RC_RATE = parseFloat((data.getUint8(0) / 100).toFixed(2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue