Skip to content

Commit b1ff323

Browse files
committed
Fix transparent wake/sleep
1 parent 81db6f3 commit b1ff323

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/modems/DigiXBeeCellularTransparent.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ bool DigiXBeeCellularTransparent::modemWakeFxn(void)
5858
{
5959
gsmModem.sendAT(GF("AM"),0);
6060
gsmModem.waitResponse();
61+
// Write changes to flash and apply them
62+
gsmModem.writeChanges();
63+
// Exit command mode
64+
gsmModem.exitCommand();
6165
}
6266
return true;
6367
}
@@ -78,6 +82,10 @@ bool DigiXBeeCellularTransparent::modemSleepFxn(void)
7882
{
7983
gsmModem.sendAT(GF("AM"),0);
8084
gsmModem.waitResponse();
85+
// Write changes to flash and apply them
86+
gsmModem.writeChanges();
87+
// Exit command mode
88+
gsmModem.exitCommand();
8189
}
8290
MS_DBG(F("Setting pin"), _modemSleepRqPin, F("HIGH to put XBee to sleep"));
8391
digitalWrite(_modemSleepRqPin, HIGH);

0 commit comments

Comments
 (0)