Skip to content

Commit 69537ee

Browse files
Rocketctsandeepmistry
authored andcommitted
Changed uncorret enum check
Changed the enum value check in GSM::shutdown()
1 parent aba76fc commit 69537ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GSM.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ int GSM::isAccessAlive()
100100

101101
bool GSM::shutdown()
102102
{
103-
if (_state == READY_STATE_DONE) {
103+
if (_state == GSM_READY) {
104104
MODEM.send("AT+CPWROFF");
105105
MODEM.waitForResponse(40000);
106106
}

0 commit comments

Comments
 (0)