From 2fe2de0e739b291cb2e4c34bc51712c02f4c2269 Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Thu, 27 Nov 2025 14:53:31 +1000 Subject: [PATCH] tools: bt_log: don't disconnect on no data Don't terminate the Bluetooth connection if no events are received. Signed-off-by: Jordan Yates --- src/infuse_iot/tools/bt_log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/infuse_iot/tools/bt_log.py b/src/infuse_iot/tools/bt_log.py index 59c08c2..7e63b47 100644 --- a/src/infuse_iot/tools/bt_log.py +++ b/src/infuse_iot/tools/bt_log.py @@ -45,7 +45,8 @@ def run(self): if self._data: types |= GatewayRequestConnectionRequest.DataType.DATA with self._client.connection(self._id, types, self._conn_timeout) as _: - while evt := self._client.receive(): + while True: + evt = self._client.receive() if evt is None: continue if isinstance(evt, ClientNotificationConnectionDropped):