aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/ramping-ui.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-08-25 02:32:43 -0600
committerSelene ToyKeeper2017-08-25 02:32:43 -0600
commit4052efbf6d7993c6b846105e870b1fcbcdb761e7 (patch)
tree8de907ef65d1da3897f11d3e2d79bd42bb7e0918 /spaghetti-monster/ramping-ui.c
parentAdded battcheck mode to ramping-ui. It's bigger than I had hoped. :( (diff)
downloadanduril-4052efbf6d7993c6b846105e870b1fcbcdb761e7.tar.gz
anduril-4052efbf6d7993c6b846105e870b1fcbcdb761e7.tar.bz2
anduril-4052efbf6d7993c6b846105e870b1fcbcdb761e7.zip
Made 4bar and 8bar battcheck styles work.
Added LVP handling for other modes, including battcheck.
Diffstat (limited to 'spaghetti-monster/ramping-ui.c')
-rw-r--r--spaghetti-monster/ramping-ui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/spaghetti-monster/ramping-ui.c b/spaghetti-monster/ramping-ui.c
index 0b5bbda..003f3de 100644
--- a/spaghetti-monster/ramping-ui.c
+++ b/spaghetti-monster/ramping-ui.c
@@ -306,6 +306,10 @@ void low_voltage() {
set_state(off_state, 0);
}
}
+ // all other modes, just turn off when voltage is low
+ else {
+ set_state(off_state, 0);
+ }
}