aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-09-24 00:01:31 -0600
committerSelene ToyKeeper2019-09-24 00:01:31 -0600
commit4948fc7cfb09d5d9bf7f899917f5aa7d274f1a1a (patch)
treec0de6b153c633213875d1d4e26262b6054276766 /spaghetti-monster
parentmade the maximum number of clicks 15 instead of 14 (diff)
downloadanduril-4948fc7cfb09d5d9bf7f899917f5aa7d274f1a1a.tar.gz
anduril-4948fc7cfb09d5d9bf7f899917f5aa7d274f1a1a.tar.bz2
anduril-4948fc7cfb09d5d9bf7f899917f5aa7d274f1a1a.zip
sped up blink_digit() a little bit, because it was annoyingly slow
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/fsm-misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/spaghetti-monster/fsm-misc.c b/spaghetti-monster/fsm-misc.c
index 8e88cbd..0a3cdca 100644
--- a/spaghetti-monster/fsm-misc.c
+++ b/spaghetti-monster/fsm-misc.c
@@ -41,20 +41,21 @@ void auto_clock_speed() {
#endif
#if defined(USE_BLINK_NUM) || defined(USE_BLINK_DIGIT)
+#define BLINK_SPEED 1000
uint8_t blink_digit(uint8_t num) {
//StatePtr old_state = current_state;
// "zero" digit gets a single short blink
- uint8_t ontime = 200;
+ uint8_t ontime = BLINK_SPEED * 2 / 10;
if (!num) { ontime = 8; num ++; }
for (; num>0; num--) {
set_level(BLINK_BRIGHTNESS);
nice_delay_ms(ontime);
set_level(0);
- nice_delay_ms(400);
+ nice_delay_ms(BLINK_SPEED * 3 / 10);
}
- return nice_delay_ms(600);
+ return nice_delay_ms(BLINK_SPEED * 5 / 10);
}
#endif