* LPPDataHelpers, readCurrent() signed value
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user