From 0b058cd7d09c4cb8a3ff7d573f87be474e4364ee Mon Sep 17 00:00:00 2001 From: Midgard Date: Wed, 21 Oct 2020 21:47:30 +0200 Subject: [PATCH] Make CAN error pattern more recognizable --- lib/obus_module.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/obus_module.cpp b/lib/obus_module.cpp index 02b6836..a0dfecd 100644 --- a/lib/obus_module.cpp +++ b/lib/obus_module.cpp @@ -5,7 +5,6 @@ #define GREEN_LED A5 #define BLINK_DELAY_SLOW 1000 -#define BLINK_DELAY_NORMAL 500 #define BLINK_DELAY_FAST 300 #define MCP_INT 2 @@ -108,8 +107,8 @@ bool loopPuzzle(obus_can::message* message, void (*callback_game_start)(), void while (true) { digitalWrite(RED_LED, blink); digitalWrite(GREEN_LED, blink); + delay(blink ? BLINK_DELAY_SLOW : BLINK_DELAY_FAST); blink = !blink; - delay(BLINK_DELAY_NORMAL); } }