From 553ae522e69f41358777f56fe1bcc262ed1e18bb Mon Sep 17 00:00:00 2001 From: Miguel Date: Wed, 25 Oct 2023 19:05:01 -0300 Subject: [PATCH] firmware: app: tasks: Adding debug log for read antenna #334 --- firmware/app/tasks/read_antenna.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/app/tasks/read_antenna.c b/firmware/app/tasks/read_antenna.c index d43ece29..2dd544bd 100644 --- a/firmware/app/tasks/read_antenna.c +++ b/firmware/app/tasks/read_antenna.c @@ -61,6 +61,15 @@ void vTaskReadAntenna(void) if (antenna_get_data(&sat_data_buf.antenna.data) == 0) { sat_data_buf.antenna.timestamp = system_get_time(); + + sys_log_print_event_from_module(SYS_LOG_INFO, TASK_READ_ANTENNA_NAME, "Temperature: "); + sys_log_print_uint(sat_data_buf.antenna.data.temperature); + sys_log_print_msg(" K"); + sys_log_new_line(); + + sys_log_print_event_from_module(SYS_LOG_INFO, TASK_READ_ANTENNA_NAME, "Status: "); + sys_log_print_hex(sat_data_buf.antenna.data.status.code); + sys_log_new_line(); } else {