summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.c b/main.c
index 5b616b3..ba5f6e6 100644
--- a/main.c
+++ b/main.c
@@ -39,8 +39,14 @@ int main(void)
sei();
fpm_init();
- if (fpm_clear_db())
- fpm_led_on(PURPLE);
+ if (fpm_get_count() == 0) {
+ for (;;) {
+ fpm_led_on(PURPLE);
+ _delay_ms(500);
+ fpm_led_off();
+ _delay_ms(500);
+ }
+ }
while (1)
{