Skip to content

Commit 229a9b6

Browse files
committed
removed check on mode
Former-commit-id: e4f151a
1 parent 35993a0 commit 229a9b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libraries/WiFiS3/src/WiFi.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ int CWifi::begin(const char* ssid, const char *passphrase) {
2525
/* -------------------------------------------------------------------------- */
2626
string res = "";
2727
modem.begin();
28-
if(!modem.write(string(PROMPT(_MODE)),res, "%s%d\r\n" , CMD_WRITE(_MODE), 1)) {
29-
return WL_CONNECT_FAILED;
30-
}
28+
modem.write(string(PROMPT(_MODE)),res, "%s%d\r\n" , CMD_WRITE(_MODE), 1);
29+
3130

3231
if(!modem.write(string(PROMPT(_BEGINSTA)),res, "%s%s,%s\r\n" , CMD_WRITE(_BEGINSTA), ssid, passphrase)) {
3332
return WL_CONNECT_FAILED;

0 commit comments

Comments
 (0)