From bd48a8c4e7961a2fccf5b885f7e32ca3cb41f9aa Mon Sep 17 00:00:00 2001 From: James Smith Date: Fri, 2 Jan 2026 17:36:44 +0000 Subject: [PATCH] Add more GPS debug logging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- utils/gps.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/gps.py b/utils/gps.py index 1633fd4..43ac7a7 100644 --- a/utils/gps.py +++ b/utils/gps.py @@ -391,12 +391,18 @@ class GPSReader: """Background thread loop for reading GPS data.""" buffer = "" sentence_count = 0 + bytes_read = 0 + + logger.info(f"GPS read loop started on {self.device_path} at {self.baudrate} baud") while self._running and self._serial: try: # Read available data if self._serial.in_waiting: data = self._serial.read(self._serial.in_waiting) + bytes_read += len(data) + if bytes_read <= 100 or bytes_read % 1000 == 0: + logger.info(f"GPS: Read {len(data)} bytes (total: {bytes_read})") buffer += data.decode('ascii', errors='ignore') # Process complete lines