Skip to content

Commit

Permalink
shutdown bug
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 committed Jan 22, 2025
1 parent 91fe776 commit eb5a919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Src/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void vShutdownMonitor(void *pv_params)
shutdown_data.shut_2 = (shutdown_buf >> 8) & 0xFF;

// reverse the bit order
shutdown_data.shut_2 = reverse_bits(shutdown_data.shut_1);
shutdown_data.shut_1 = reverse_bits(shutdown_data.shut_1);
shutdown_data.shut_2 = reverse_bits(shutdown_data.shut_2);

memcpy(shutdown_msg.data, &shutdown_data, shutdown_msg.len);
Expand Down

0 comments on commit eb5a919

Please sign in to comment.