Skip to content

Commit

Permalink
firmware: app: tasks: process_tc: Add log messages for "Erase Memory" TC
Browse files Browse the repository at this point in the history
  • Loading branch information
c-porto committed Mar 5, 2025
1 parent d4a5c1a commit 7feade7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions firmware/app/tasks/process_tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,9 @@ static void process_tc_erase_memory(uint8_t *pkt, uint16_t pkt_len)
{
case MEMORY_ID_NOR:
{
sys_log_print_event_from_module(SYS_LOG_INFO, TASK_PROCESS_TC_NAME, "Erasing NOR memory...");
sys_log_new_line();

if (mem_mng_erase_flash(&sat_data_buf.obdh) < 0)
{
sys_log_print_event_from_module(SYS_LOG_ERROR, TASK_PROCESS_TC_NAME, "Error erasing NOR memory!");
Expand All @@ -1317,6 +1320,9 @@ static void process_tc_erase_memory(uint8_t *pkt, uint16_t pkt_len)
}
case MEMORY_ID_FRAM:
{
sys_log_print_event_from_module(SYS_LOG_INFO, TASK_PROCESS_TC_NAME, "Erasing FRAM memory...");
sys_log_new_line();

if (mem_mng_reset_fram() < 0)
{
sys_log_print_event_from_module(SYS_LOG_ERROR, TASK_PROCESS_TC_NAME, "Error erasing FRAM memory!");
Expand Down

0 comments on commit 7feade7

Please sign in to comment.