Skip to content

Commit

Permalink
firmware: devices: obdh: Fixing reset parameter, closes #156
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelboing committed Sep 12, 2024
1 parent 6d79654 commit 2dc88b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions firmware/devices/obdh/obdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
* \version 1.0.0
*
* \date 2024/09/09
* \date 2024/09/11
*
* \addtogroup obdh
* \{
Expand Down Expand Up @@ -104,14 +104,14 @@ int obdh_read_request(obdh_request_t *obdh_request)
sys_log_print_hex(obdh_request->parameter);
sys_log_new_line();

if (obdh_request->parameter == CMDPR_PARAM_TX_ENABLE)
if ((obdh_request->parameter == CMDPR_PARAM_TX_ENABLE) || (obdh_request->parameter == CMDPR_PARAM_RESET_DEVICE))
{
obdh_request->data.param_8 = request[3];
}
else
{
sys_log_print_event_from_module(SYS_LOG_ERROR, OBDH_MODULE_NAME, "Unknown parameter:");
sys_log_print_hex(request[3]);
sys_log_print_hex(request[2]);
sys_log_new_line();

err = -1;
Expand Down

0 comments on commit 2dc88b9

Please sign in to comment.