Skip to content

Commit c116cb1

Browse files
committed
GSM: squashme fix ping return value
1 parent 3f7b4f0 commit c116cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/GSM/src/GSM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ int arduino::GSMClass::ping(const char* hostname, int ttl) {
144144

145145
mbed::GEMALTO_CINTERION_CellularStack* stack = (mbed::GEMALTO_CINTERION_CellularStack*)_context->get_stack();
146146
if (!stack) {
147-
return 0;
147+
return -1;
148148
}
149149
return stack->ping(hostname, ttl);
150150
}

0 commit comments

Comments
 (0)