diff options
| author | Selene ToyKeeper | 2023-05-30 09:28:19 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-05-30 09:28:19 -0600 |
| commit | e3798bbd2d4e46cb73e266401d2817533683a7e9 (patch) | |
| tree | eba85ef408dfdf263da18d6c33eb8a9d97c8bec6 | |
| parent | fixed aux pre-flash (thanks to wolfgirl42) (diff) | |
| download | anduril-e3798bbd2d4e46cb73e266401d2817533683a7e9.tar.gz anduril-e3798bbd2d4e46cb73e266401d2817533683a7e9.tar.bz2 anduril-e3798bbd2d4e46cb73e266401d2817533683a7e9.zip | |
moved definition of BLINK_ONCE_TIME to the same file as BLINK_BRIGHTNESS
| -rw-r--r-- | spaghetti-monster/anduril/misc.c | 6 | ||||
| -rw-r--r-- | spaghetti-monster/fsm-misc.h | 5 |
2 files changed, 5 insertions, 6 deletions
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) |
