From 805525840b28c743aba057462a7ef02cf3b3dbbc Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Tue, 19 Jan 2021 19:40:07 +0100 Subject: [PATCH] Always update last status --- feedback/firmware/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/feedback/firmware/main.c b/feedback/firmware/main.c index f7f2c68..3cbce06 100644 --- a/feedback/firmware/main.c +++ b/feedback/firmware/main.c @@ -75,10 +75,13 @@ static void send_status(uint16_t status) { static void loop() { // Check for status changes uint16_t new_status = get_status(); - if (report_change && new_status != saved_status) { - send_status(new_status); + if (new_status != saved_status) { + if (report_change) { + send_status(new_status); + } saved_status = new_status; } + // Check for new messages if (can_check_message()) { can_t msg = { 0 };