From b6eb4752727c1138b43e3ea44da3324b03c0c703 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 23 Jan 2025 14:37:52 -0500 Subject: [PATCH] Fix control fanbattbox record function --- Core/Src/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Src/control.c b/Core/Src/control.c index 9d9dfc5..b934abf 100644 --- a/Core/Src/control.c +++ b/Core/Src/control.c @@ -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;