Browse Source

Update TinyGsmClientSIM800.h

Question mark not a valid mode for this at command AT+CBC
v_master
Vince 5 years ago
committed by GitHub
parent
commit
c3508aa000
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/TinyGsmClientSIM800.h

+ 2
- 2
src/TinyGsmClientSIM800.h View File

@ -698,7 +698,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
} }
uint8_t getBattChargeState() { uint8_t getBattChargeState() {
sendAT(GF("+CBC?"));
sendAT(GF("+CBC"));
if (waitResponse(GF(GSM_NL "+CBC:")) != 1) { if (waitResponse(GF(GSM_NL "+CBC:")) != 1) {
return false; return false;
} }
@ -710,7 +710,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
} }
bool getBattStats(uint8_t &chargeState, int8_t &percent, uint16_t &milliVolts) { bool getBattStats(uint8_t &chargeState, int8_t &percent, uint16_t &milliVolts) {
sendAT(GF("+CBC?"));
sendAT(GF("+CBC"));
if (waitResponse(GF(GSM_NL "+CBC:")) != 1) { if (waitResponse(GF(GSM_NL "+CBC:")) != 1) {
return false; return false;
} }


Loading…
Cancel
Save