aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-07-22 16:50:22 -0600
committerSelene ToyKeeper2020-07-22 16:50:22 -0600
commita1683d309f4f9370c1b2b2a05802c8580c1e2543 (patch)
tree79e6442089a65cf780709843a158de53e680d3fd
parentrenamed ramping.* -> ramp-mode.* (diff)
downloadanduril-a1683d309f4f9370c1b2b2a05802c8580c1e2543.tar.gz
anduril-a1683d309f4f9370c1b2b2a05802c8580c1e2543.tar.bz2
anduril-a1683d309f4f9370c1b2b2a05802c8580c1e2543.zip
renamed off-state.* -> off-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);
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.