From e3798bbd2d4e46cb73e266401d2817533683a7e9 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 30 May 2023 09:28:19 -0600 Subject: moved definition of BLINK_ONCE_TIME to the same file as BLINK_BRIGHTNESS --- spaghetti-monster/anduril/misc.c | 6 ------ spaghetti-monster/fsm-misc.h | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'spaghetti-monster') diff --git a/spaghetti-monster/anduril/misc.c b/spaghetti-monster/anduril/misc.c index d78c542..1b92d6f 100644 --- a/spaghetti-monster/anduril/misc.c +++ b/spaghetti-monster/anduril/misc.c @@ -22,12 +22,6 @@ void blink_confirm(uint8_t num) { // make a short, visible pulse // (either brighter or darker, depending on current brightness) -#ifndef BLINK_ONCE_TIME -#define BLINK_ONCE_TIME 10 -#endif -#ifndef BLINK_BRIGHTNESS -#define BLINK_BRIGHTNESS (MAX_LEVEL/6) -#endif void blink_once() { uint8_t brightness = actual_level; uint8_t bump = brightness + BLINK_BRIGHTNESS; diff --git a/spaghetti-monster/fsm-misc.h b/spaghetti-monster/fsm-misc.h index 8988337..8de6b29 100644 --- a/spaghetti-monster/fsm-misc.h +++ b/spaghetti-monster/fsm-misc.h @@ -8,6 +8,11 @@ void auto_clock_speed(); #endif +// shortest time (in ms) the light should blink for to indicate a zero +#ifndef BLINK_ONCE_TIME + #define BLINK_ONCE_TIME 10 +#endif + #if defined(USE_BLINK_NUM) || defined(USE_BLINK_DIGIT) #ifndef BLINK_BRIGHTNESS #define BLINK_BRIGHTNESS (MAX_LEVEL/6) -- cgit v1.2.3