mirror of
https://github.com/vshymanskyy/TinyGSM.git
synced 2026-05-15 04:06:10 +00:00
Made battery return types signed
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -255,9 +255,9 @@ void loop() {
|
||||
// modem.getBattVoltage(); // Not available for all modems
|
||||
// modem.getBattPercent(); // Not available for all modems
|
||||
// modem.getBattChargeState(); // Not available for all modems
|
||||
uint8_t chargeState = -99;
|
||||
int8_t chargePercent = -99;
|
||||
uint16_t milliVolts = -9999;
|
||||
int8_t chargeState = -99;
|
||||
int8_t chargePercent = -99;
|
||||
int16_t milliVolts = -9999;
|
||||
modem.getBattStats(chargeState, chargePercent, milliVolts);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user