From 76e225aec9e4a8ead63d69ce80d4d0f92a442327 Mon Sep 17 00:00:00 2001 From: Steve Evans Date: Tue, 13 Feb 2024 23:14:43 +0000 Subject: [PATCH] For now disable 4way-if timeout (#13364) --- src/main/io/serial_4way.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/io/serial_4way.c b/src/main/io/serial_4way.c index bbe611d8166..9b97969aa27 100644 --- a/src/main/io/serial_4way.c +++ b/src/main/io/serial_4way.c @@ -396,13 +396,19 @@ static serialPort_t *port; static bool ReadByte(uint8_t *data, timeDelta_t timeoutUs) { - // need timedOut? +#ifdef USE_TIMEOUT_4WAYIF timeUs_t startTime = micros(); while (!serialRxBytesWaiting(port)) { if (timeoutUs && (cmpTimeUs(micros(), startTime) > timeoutUs)) { return true; } } +#else + UNUSED(timeoutUs); + + // Wait indefinitely + while (!serialRxBytesWaiting(port)); +#endif *data = serialRead(port);