From 2940fb6956705ca0bacd762a7109e491465fd171 Mon Sep 17 00:00:00 2001 From: Ben Gardiner Date: Sun, 22 Feb 2026 16:05:14 -0500 Subject: [PATCH] recv_internal: timeout=None means block forever --- candle/candle_bus.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/candle/candle_bus.py b/candle/candle_bus.py index 26d0797..801a0a5 100644 --- a/candle/candle_bus.py +++ b/candle/candle_bus.py @@ -182,9 +182,8 @@ def _recv_internal(self, timeout: Optional[float]) -> Tuple[Optional[can.Message if frame is not None: return convert_frame(i, frame, self._hardware_timestamps[i]), False - # Do not block if timeout is None. if timeout is None: - return None, False + timeout = 2**32 - 1 # Block until a frame is available. if not self._device.wait_for_frame(timeout):