more time for ReadLn

This commit is contained in:
Alex Mikhalev 2019-05-15 21:21:39 -07:00
parent a07f2bfd6c
commit 8a479f5841

View File

@ -335,6 +335,7 @@ int E32_Driver::ReadLn(std::string& data, TickType_t ticks_to_wait) {
if (read < 1) { if (read < 1) {
return read; return read;
} }
ticks_to_wait += pdMS_TO_TICKS(10); // give it a bit more time...
if (byte == '\n') break; if (byte == '\n') break;
data += (char)byte; data += (char)byte;
total_read += read; total_read += read;