summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-06-14 15:14:13 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-06-14 15:14:13 +0800
commit0ed0e93d5a5ac88bc7c299e7f16b5e68bd70a66e (patch)
treef8973639a1f9dc780c6b11409c28f2fb26ec76fe
parent7147425b2a3d646a72951d79598ec8b6822c3911 (diff)
downloadfpm-door-lock-0ed0e93d5a5ac88bc7c299e7f16b5e68bd70a66e.tar.gz
Sleep, servo is finnicky.
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 56ecc6c..fdc06fd 100644
--- a/main.c
+++ b/main.c
@@ -125,6 +125,10 @@ int main(void)
for (;;) {
if (getvcc() < VCC_MIN)
LED_PORT |= (1 << LED_PIN);
+
+ sleep_bod_disable();
+ set_sleep_mode(SLEEP_MODE_PWR_DOWN);
+ sleep_mode();
}
return 0;