summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-06-14 15:11:03 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-06-14 15:11:03 +0800
commit7147425b2a3d646a72951d79598ec8b6822c3911 (patch)
treed926b302e1a7474452f2ebc490630dc9340aa177
parentc16d4508a6d59cd28095537a4d603e0629389027 (diff)
downloadfpm-door-lock-7147425b2a3d646a72951d79598ec8b6822c3911.tar.gz
Bat check, servo is still responding.
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 244a2b2..56ecc6c 100644
--- a/main.c
+++ b/main.c
@@ -123,6 +123,8 @@ int main(void)
sei();
for (;;) {
+ if (getvcc() < VCC_MIN)
+ LED_PORT |= (1 << LED_PIN);
}
return 0;