Verified Commit 99093892 authored by Angus Ainslie's avatar Angus Ainslie Committed by Clayton Craft
Browse files don't error out if the gnss module doesn't return data (MR 2)

Sometimes nothing gets returned on STMDUMPEPHEMS

Fixes #1
Signed-off-by: default avatarAngus Ainslie <>
parent ca6a7021
......@@ -97,7 +97,8 @@ class STM_AGPS:
msg = pynmea2.GGA('P', cmd, ())
result, line = await self._serial_write_cmd(msg, ack)
if not result:
raise LoggedException("Unable to get data from device")
self.__log.warn(f"No data returned to create {file}")
async with await trio.open_file(file, 'wb') as f:
while True:
if cmd.encode() in line:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment