mirror of
https://github.com/smittix/intercept.git
synced 2026-04-25 07:10:00 -07:00
Add more GPS debug logging
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user