aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-08-31 14:27:22 -0600
committerSelene ToyKeeper2020-08-31 14:27:22 -0600
commit83029f97547a21a8d8d499a4e160f3a348bbed67 (patch)
tree63ce02bc5fa4b2353d0fc5ad155919343564985c
parentmade manual memory work when unlocking light (diff)
downloadanduril-83029f97547a21a8d8d499a4e160f3a348bbed67.tar.gz
anduril-83029f97547a21a8d8d499a4e160f3a348bbed67.tar.bz2
anduril-83029f97547a21a8d8d499a4e160f3a348bbed67.zip
removed unnecessary blink_once calls, made blink_once a bit less bright
-rw-r--r--spaghetti-monster/anduril/lockout-mode.c2
-rw-r--r--spaghetti-monster/anduril/misc.c2
-rw-r--r--spaghetti-monster/anduril/ramp-mode.c1
3 files changed, 1 insertions, 4 deletions
diff --git a/spaghetti-monster/anduril/lockout-mode.c b/spaghetti-monster/anduril/lockout-mode.c
index e65886d..9c8ac1f 100644
--- a/spaghetti-monster/anduril/lockout-mode.c
+++ b/spaghetti-monster/anduril/lockout-mode.c
@@ -90,7 +90,6 @@ uint8_t lockout_state(Event event, uint16_t arg) {
// 4 clicks: exit and turn on
else if (event == EV_4clicks) {
- blink_once();
#ifdef USE_MANUAL_MEMORY
if (manual_memory)
set_state(steady_state, manual_memory);
@@ -110,7 +109,6 @@ uint8_t lockout_state(Event event, uint16_t arg) {
}
// 5 clicks: exit and turn on at ceiling level
else if (event == EV_5clicks) {
- blink_once();
set_state(steady_state, MAX_LEVEL);
return MISCHIEF_MANAGED;
}
diff --git a/spaghetti-monster/anduril/misc.c b/spaghetti-monster/anduril/misc.c
index 182c7e5..f6a0439 100644
--- a/spaghetti-monster/anduril/misc.c
+++ b/spaghetti-monster/anduril/misc.c
@@ -24,7 +24,7 @@
void blink_confirm(uint8_t num) {
uint8_t brightness = actual_level;
- uint8_t bump = actual_level + (MAX_LEVEL/4);
+ uint8_t bump = actual_level + (MAX_LEVEL/6);
if (bump > MAX_LEVEL) bump = 0;
for (; num>0; num--) {
set_level(bump);
diff --git a/spaghetti-monster/anduril/ramp-mode.c b/spaghetti-monster/anduril/ramp-mode.c
index 78cf9af..93f0d36 100644
--- a/spaghetti-monster/anduril/ramp-mode.c
+++ b/spaghetti-monster/anduril/ramp-mode.c
@@ -128,7 +128,6 @@ uint8_t steady_state(Event event, uint16_t arg) {
// 4 clicks: shortcut to lockout mode
else if (event == EV_4clicks) {
set_level(0);
- blink_once();
set_state(lockout_state, 0);
return MISCHIEF_MANAGED;
}
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.