This commit is contained in:
parent
fd6b76bfdd
commit
87b766dfb8
@ -126,6 +126,13 @@ def handle_event_packet( # noqa C901: Complexity okay here
|
|||||||
time = event_def.param1 + event_def.param2 / 1000.0
|
time = event_def.param1 + event_def.param2 / 1000.0
|
||||||
time_dt = datetime.datetime.fromtimestamp(time, datetime.timezone.utc)
|
time_dt = datetime.datetime.fromtimestamp(time, datetime.timezone.utc)
|
||||||
pw.dlog(f"Current time: {time_dt}")
|
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":
|
if info.name == "HEALTH_INFO":
|
||||||
specific_handler = True
|
specific_handler = True
|
||||||
health = FsfwHealth(event_def.param1)
|
health = FsfwHealth(event_def.param1)
|
||||||
|
Loading…
Reference in New Issue
Block a user