summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-05-07 14:55:01 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-05-07 14:55:01 +0800
commit6217519d22c4398706bd316f74103909c1d268ec (patch)
tree7c22a20a04b35bbfab079353ef2360d6ca798a13 /main.c
parent737e4e248ce408c43ac02917a5fa9aced89b7af6 (diff)
downloadavr-fpm-drivers-6217519d22c4398706bd316f74103909c1d268ec.tar.gz
Get template count.
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)
{