aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spaghetti-monster/anduril/anduril.c4
-rw-r--r--spaghetti-monster/anduril/off-mode.c (renamed from spaghetti-monster/anduril/off-state.c)8
-rw-r--r--spaghetti-monster/anduril/off-mode.h (renamed from spaghetti-monster/anduril/off-state.h)8
3 files changed, 10 insertions, 10 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index 67b4b3f..6ef7954 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -88,7 +88,7 @@
/********* Include all the regular app headers *********/
-#include "off-state.h"
+#include "off-mode.h"
#include "ramp-mode.h"
#include "load-save-config.h"
#include "config-mode.h"
@@ -204,7 +204,7 @@ uint8_t rgb_led_lockout_mode = RGB_LED_LOCKOUT_DEFAULT;
// (is a bit weird to do things this way,
// but it saves a lot of space by letting us use the -fwhole-program flag)
-#include "off-state.c"
+#include "off-mode.c"
#include "ramp-mode.c"
#include "load-save-config.c"
#include "config-mode.c"
diff --git a/spaghetti-monster/anduril/off-state.c b/spaghetti-monster/anduril/off-mode.c
index 9bbdc81..a640b5c 100644
--- a/spaghetti-monster/anduril/off-state.c
+++ b/spaghetti-monster/anduril/off-mode.c
@@ -1,5 +1,5 @@
/*
- * off-state.c: "Off" state for Anduril.
+ * off-mode.c: "Off" mode for Anduril.
*
* Copyright (C) 2017 Selene ToyKeeper
*
@@ -17,10 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef OFF_STATE_C
-#define OFF_STATE_C
+#ifndef OFF_MODE_C
+#define OFF_MODE_C
-#include "off-state.h"
+#include "off-mode.h"
uint8_t off_state(Event event, uint16_t arg) {
// turn emitter off when entering state
diff --git a/spaghetti-monster/anduril/off-state.h b/spaghetti-monster/anduril/off-mode.h
index 2bd7508..776173c 100644
--- a/spaghetti-monster/anduril/off-state.h
+++ b/spaghetti-monster/anduril/off-mode.h
@@ -1,5 +1,5 @@
/*
- * off-state.h: "Off" state for Anduril.
+ * off-mode.h: "Off" mode for Anduril.
*
* Copyright (C) 2017 Selene ToyKeeper
*
@@ -17,10 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef OFF_STATE_H
-#define OFF_STATE_H
+#ifndef OFF_MODE_H
+#define OFF_MODE_H
-// handles when the light is "off" or in standby
+// when the light is "off" or in standby
uint8_t off_state(Event event, uint16_t arg);