Added pin parameter on restart() (necessary for init() with pin)

This commit is contained in:
Adrian Cervera Andes
2021-01-29 15:02:35 +01:00
parent 31bb5cbeed
commit a51cfda25d
15 changed files with 30 additions and 30 deletions

View File

@@ -171,12 +171,12 @@ class TinyGsmM590 : public TinyGsmModem<TinyGsmM590>,
* Power functions
*/
protected:
bool restartImpl() {
bool restartImpl(const char* pin = NULL) {
if (!testAT()) { return false; }
if (!setPhoneFunctionality(15)) { return false; }
// MODEM:STARTUP
waitResponse(60000L, GF(GSM_NL "+PBREADY" GSM_NL));
return init();
return init(pin);
}
bool powerOffImpl() {