Adjusted 'amperageLatest' data type to be 'int32_t' to be consistent with 'amperage'.

This commit is contained in:
Michael Keller 2017-01-23 11:48:25 +13:00
parent 951e8271a5
commit c6e9b6b772
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;