Check for non-empty pin

This commit is contained in:
Sara Damiano
2019-08-28 13:04:44 -04:00
parent 958c303840
commit 2092163a36
4 changed files with 14 additions and 11 deletions

View File

@@ -156,7 +156,7 @@ public:
if (!testAT()) {
return false;
}
if (pin != NULL) {
if (pin && strlen(pin) > 0) {
DBG("ESP8266 modules do not use an unlock pin!");
}
sendAT(GF("E0")); // Echo Off