Skip to content

Commit 9ed95ad

Browse files
committed
GSM: GSM::end() add device shutdown command
1 parent 8b06fb3 commit 9ed95ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/GSM/src/GSM.cpp

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

134134
void arduino::GSMClass::end() {
135-
_device->shutdown();
135+
if(_device) {
136+
_device->shutdown();
137+
}
136138
}
137139

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

0 commit comments

Comments
 (0)