active SD info
All checks were successful
EIVE/-/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-07-21 11:36:01 +02:00
parent fd6b76bfdd
commit 87b766dfb8
Signed by: muellerr
GPG Key ID: 407F9B00F858F270

View File

@ -126,6 +126,13 @@ def handle_event_packet( # noqa C901: Complexity okay here
time = event_def.param1 + event_def.param2 / 1000.0
time_dt = datetime.datetime.fromtimestamp(time, datetime.timezone.utc)
pw.dlog(f"Current time: {time_dt}")
if info.name == "ACTIVE_SD_INFO":
active_sd = event_def.param1
sd_0_state = (event_def.param2 >> 16) & 0xFFFF
sd_1_state = event_def.param2 & 0xFFFF
pw.dlog(
f"Active SD card {active_sd} | SD 0 State {sd_0_state} | SD 1 State {sd_1_state}"
)
if info.name == "HEALTH_INFO":
specific_handler = True
health = FsfwHealth(event_def.param1)