Skip to content

Commit

Permalink
Fix control fanbattbox record function
Browse files Browse the repository at this point in the history
  • Loading branch information
dnakhooda committed Jan 23, 2025
1 parent fa54398 commit b6eb475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Src/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void vControl(void *param)

void control_fanbattbox_record(can_msg_t msg)
{
if (msg.data > 0) {
if (msg.data[0] > 0) {
fanBattBoxState = 1;
} else {
fanBattBoxState = 0;
Expand Down

0 comments on commit b6eb475

Please sign in to comment.