Commit f2fab1e6 authored by Eric Duminil's avatar Eric Duminil
Browse files

BUGFIX: Actually detect if sensor isn't connected

parent 177843c3
Pipeline #7039 passed with stage
in 2 minutes and 51 seconds
......@@ -561,6 +561,7 @@ uint8_t S8_UART::serial_read_bytes(uint8_t max_bytes, uint32_t timeout_ms) {
nb = mySerial->readBytes(buf_msg, max_bytes);
readed = true;
}
delay(50); //NOTE: ESP crashes without this delay, possibly because it calls readBytes too many times, too fast
end_t = millis();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment