Skip to content

Commit a90cdf5

Browse files
authored
Merge pull request arduino#147 from JAndrassy/wifis3_modem_timeout_fix
WiFiS3 fix Modem timeout at ERROR response
2 parents 0604415 + c2d23ab commit a90cdf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFiS3/src/Modem.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ bool ModemClass::buf_read(const string &prompt, string &data_res) {
256256
break;
257257
}
258258
else if (string::npos != data_res.rfind(RESULT_ERROR)) {
259+
found = true;
259260
data_res.substr(0, data_res.length() - (sizeof(RESULT_ERROR) - 1));
260261
res = false;
261262
break;

0 commit comments

Comments
 (0)