From 8d412df7e185867a6ffdf4177a5f156993900066 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Sun, 30 Oct 2022 12:19:26 -0400 Subject: [PATCH] Transmit an off signal --- lantern-controller/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lantern-controller/main.c b/lantern-controller/main.c index 2c3fb25..85a793e 100644 --- a/lantern-controller/main.c +++ b/lantern-controller/main.c @@ -6,6 +6,7 @@ #include typedef enum { + lme_off, lme_normal, lme_spooky, lme_eerie, @@ -70,6 +71,9 @@ int main(void) { } else if (status_flags.button_press[2]) { status_flags.button_press[2] = false; msg = lme_eerie; + } else if (status_flags.button_press[3]) { + status_flags.button_press[3] = false; + msg = lme_off; } else { continue; }