Browse Source

* LPPDataHelpers, readCurrent() signed value

pull/1196/head
Scott Powell 6 months ago
parent
commit
d7adcc136b
  1. 2
      src/helpers/sensors/LPPDataHelpers.h

2
src/helpers/sensors/LPPDataHelpers.h

@ -113,7 +113,7 @@ public:
return _pos <= _len; return _pos <= _len;
} }
bool readCurrent(float& amps) { bool readCurrent(float& amps) {
amps = getFloat(&_buf[_pos], 2, 1000, false); _pos += 2; amps = getFloat(&_buf[_pos], 2, 1000, true); _pos += 2;
return _pos <= _len; return _pos <= _len;
} }
bool readPower(float& watts) { bool readPower(float& watts) {

Loading…
Cancel
Save