Skip to content

Commit 76db898

Browse files
committed
Modem: check wifi firmware softreset response to set initialization done
1 parent e9d112e commit 76db898

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/WiFiS3/src/Modem.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ void ModemClass::begin(int badurate){
3434
/* -------------------------------------------------------------------------- */
3535
if(_serial != nullptr && !beginned) {
3636
_serial->begin(badurate);
37-
beginned = true;
3837
string res = "";
3938
_serial->flush();
40-
modem.write(string(PROMPT(_SOFTRESETWIFI)),res, "%s" , CMD(_SOFTRESETWIFI));
39+
beginned = modem.write(string(PROMPT(_SOFTRESETWIFI)),res, "%s" , CMD(_SOFTRESETWIFI));
4140
}
4241
}
4342

0 commit comments

Comments
 (0)