aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-08-26 03:37:52 -0600
committerSelene ToyKeeper2017-08-26 03:37:52 -0600
commit530ce37a5aeb29a9c31f8f37d0ce5e561e80995c (patch)
tree79a5da5234ed162d92e8b18004f43eee73b8b262 /spaghetti-monster
parentAdded beacons/strobes to DarkHorse. (diff)
downloadanduril-530ce37a5aeb29a9c31f8f37d0ce5e561e80995c.tar.gz
anduril-530ce37a5aeb29a9c31f8f37d0ce5e561e80995c.tar.bz2
anduril-530ce37a5aeb29a9c31f8f37d0ce5e561e80995c.zip
Forgot to handle beacon/strobe in LVP earlier.
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/darkhorse.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/spaghetti-monster/darkhorse.c b/spaghetti-monster/darkhorse.c
index 5a522a4..03cd5e7 100644
--- a/spaghetti-monster/darkhorse.c
+++ b/spaghetti-monster/darkhorse.c
@@ -272,13 +272,6 @@ uint8_t strobe_beacon_state(EventPtr event, uint16_t arg) {
void low_voltage() {
- // TODO: rewrite this
- /*
- // "step down" from strobe to something low
- if (current_state == party_strobe_state) {
- set_state(steady_state, RAMP_SIZE/6);
- }
- */
if (current_state == hi_mode_state) {
set_state(med_mode_state, 0);
}
@@ -288,6 +281,10 @@ void low_voltage() {
else if (current_state == low_mode_state) {
set_state(off_state, 0);
}
+ // "step down" from blinkies to low
+ else if (current_state == strobe_beacon_state) {
+ set_state(low_mode_state, 0);
+ }
}
void setup() {
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.