From e94626081ac2501b728b50e94f3d45277765bb9c Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Mon, 31 Aug 2020 14:43:47 -0600 Subject: reduced size 18 bytes by removing unnecessary duplications of blink_once() --- spaghetti-monster/anduril/anduril.c | 4 +--- spaghetti-monster/anduril/config-mode.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index fdc5b54..05d0e04 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -209,9 +209,7 @@ void setup() { // regular e-switch light, no hard clicky power button // blink at power-on to let user know power is connected - set_level(RAMP_SIZE/8); - delay_4ms(3); - set_level(0); + blink_once(); #ifdef USE_FACTORY_RESET if (button_is_pressed()) diff --git a/spaghetti-monster/anduril/config-mode.c b/spaghetti-monster/anduril/config-mode.c index a62cec0..ea4ce6b 100644 --- a/spaghetti-monster/anduril/config-mode.c +++ b/spaghetti-monster/anduril/config-mode.c @@ -140,8 +140,6 @@ uint8_t number_entry_state(Event event, uint16_t arg) { wait_ticks = 0; // flash briefly set_level(RAMP_SIZE/2); - delay_4ms(8/2); - set_level(0); } return MISCHIEF_MANAGED; } -- cgit v1.2.3