Skip to content

Commit 473c232

Browse files
committed
Fix compiler warnings
1 parent 28f425c commit 473c232

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/ArduinoCellular.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ bool ArduinoCellular::connect(String apn, String gprsUser, String gprsPass, Stri
6767
} else {
6868
return false;
6969
}
70-
} else {
71-
return false;
7270
}
71+
72+
return false;
7373
}
7474

7575

@@ -193,7 +193,7 @@ bool ArduinoCellular::unlockSIM(const char * pin){
193193
if(this->debugStream != nullptr){
194194
this->debugStream->println("Unlocking SIM...");
195195
}
196-
modem.simUnlock(pin);
196+
return modem.simUnlock(pin);
197197
}
198198

199199
bool ArduinoCellular::awaitNetworkRegistration(){
@@ -226,7 +226,7 @@ bool ArduinoCellular::enableGPS(bool assisted){
226226

227227
//modem.waitResponse();
228228

229-
modem.enableGPS();
229+
return modem.enableGPS();
230230
//delay(10000);
231231
}
232232

0 commit comments

Comments
 (0)