Browse Source

more time for ReadLn

master
Alex Mikhalev 6 years ago
parent
commit
8a479f5841
  1. 1
      main/e32_driver.cc

1
main/e32_driver.cc

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

Loading…
Cancel
Save