Adjusted 'amperageLatest' data type to be 'int32_t' to be consistent with 'amperage'.
This commit is contained in:
parent
951e8271a5
commit
c6e9b6b772
|
@ -61,7 +61,7 @@ uint16_t vbat = 0; // battery voltage in 0.1V steps (filtered)
|
|||
uint16_t vbatLatest = 0; // most recent unsmoothed value
|
||||
|
||||
int32_t amperage = 0; // amperage read by current sensor in centiampere (1/100th A)
|
||||
uint16_t amperageLatest = 0; // most recent value
|
||||
int32_t amperageLatest = 0; // most recent value
|
||||
|
||||
int32_t mAhDrawn = 0; // milliampere hours drawn from the battery since start
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ extern uint16_t vbatRaw;
|
|||
extern uint16_t vbatLatest;
|
||||
extern uint8_t batteryCellCount;
|
||||
extern uint16_t batteryWarningVoltage;
|
||||
extern uint16_t amperageLatest;
|
||||
extern int32_t amperageLatest;
|
||||
extern int32_t amperage;
|
||||
extern int32_t mAhDrawn;
|
||||
|
||||
|
|
Loading…
Reference in New Issue