Check AI after XBee shutdown

This commit is contained in:
Sara Damiano
2019-09-05 13:32:42 -04:00
parent 6b0c51962e
commit 21431da99b

View File

@@ -527,7 +527,9 @@ public:
XBEE_COMMAND_START_DECORATOR(5, false)
sendAT(GF("SD"));
bool ret_val = waitResponse(120000L) == 1;
ret_val &= writeChanges();
if (ret_val) {
ret_val &= (sendATGetString(GF("AI")) == "2D");
}
XBEE_COMMAND_END_DECORATOR
return ret_val;
}