From f302573875aba1574ec78a47d34ca54fdc4fd55f Mon Sep 17 00:00:00 2001 From: Xuereb Date: Mon, 13 Nov 2023 10:47:13 -0500 Subject: [PATCH] Fix for beep bug if lights are changed too quickly Revert "Fix for beep bug if lights are changed too quickly" This reverts commit a2caa7182a6d89765c2f0f4e860489cdfb2b19b9. Fix for buzzer bug when changing lights quickly --- LCM/Code/App/task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LCM/Code/App/task.c b/LCM/Code/App/task.c index 93d11e9a..65b1cb7d 100644 --- a/LCM/Code/App/task.c +++ b/LCM/Code/App/task.c @@ -629,7 +629,7 @@ void Buzzer_Task(void) { ring_frequency++; buzzer_step = 0; - if(ring_frequency == Gear_Position) + if(ring_frequency >= Gear_Position) { ring_frequency = 0; gear_position_last = Gear_Position;