Skip to content

Commit 785fdb4

Browse files
committed
GSM: remove SYSSTART urc before shutdown
1 parent 19e111b commit 785fdb4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/GSM/src/GSM.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ bool arduino::GSMClass::isCmuxEnable() {
132132
}
133133

134134
void arduino::GSMClass::end() {
135-
_device->shutdown();
135+
if(_device) {
136+
_device->shutdown();
137+
_device->get_at_handler()->set_urc_handler("^SYSSTART", nullptr);
138+
}
136139
}
137140

138141
int arduino::GSMClass::disconnect() {

0 commit comments

Comments
 (0)