Skip to content

Commit

Permalink
firmware: app: tasks: Adding debug log for read antenna #334
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel committed Oct 25, 2023
1 parent 62c66e3 commit 553ae52
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions firmware/app/tasks/read_antenna.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 553ae52

Please sign in to comment.