less copy-pasta helps sometimes
All checks were successful
EIVE/-/pipeline/pr-main This commit looks good

This commit is contained in:
Marius Eggert 2023-08-08 13:39:36 +02:00
parent 051e9e6ffb
commit 1acbb8bb43

View File

@ -1060,12 +1060,7 @@ def handle_gps_data_processed(pw: PrintWrapper, hk_data: bytes):
)
]
current_idx += inc_len_vec
source = [
f"{val:8.3f}"
for val in struct.unpack(
fmt_source, hk_data[current_idx: current_idx + inc_len_source]
)
]
source = struct.unpack(fmt_source, hk_data[current_idx: current_idx + inc_len_source])[0]
current_idx += inc_len_source
if GPS_COURCE_DICT.get(source) is not None:
pw.dlog(f"GPS Source: {GPS_COURCE_DICT[source]}")