aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-12-08 12:49:44 -0700
committerSelene ToyKeeper2021-12-08 12:49:44 -0700
commit3a8557dc1e514d4f04b2a6e0ef9da3bce1286c86 (patch)
treeaa113028b78061acf1091db61510fa968b37ba27 /spaghetti-monster
parentmerged Noctigon DM11 branch (diff)
downloadanduril-3a8557dc1e514d4f04b2a6e0ef9da3bce1286c86.tar.gz
anduril-3a8557dc1e514d4f04b2a6e0ef9da3bce1286c86.tar.bz2
anduril-3a8557dc1e514d4f04b2a6e0ef9da3bce1286c86.zip
fixed Ramp 3H with Anduril 2 style turbo
(it was going to ceiling instead of full power) (also had to disable battcheck calibration on some large builds to make room)
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/cfg-ff-rot66.h6
-rw-r--r--spaghetti-monster/anduril/cfg-mateminco-mf01-mini.h5
-rw-r--r--spaghetti-monster/anduril/ramp-mode.c5
3 files changed, 16 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/cfg-ff-rot66.h b/spaghetti-monster/anduril/cfg-ff-rot66.h
index 48541a7..03b74db 100644
--- a/spaghetti-monster/anduril/cfg-ff-rot66.h
+++ b/spaghetti-monster/anduril/cfg-ff-rot66.h
@@ -44,4 +44,10 @@
// too big, remove stuff to make room
#undef USE_RAMP_AFTER_MOON_CONFIG
#undef USE_RAMP_SPEED_CONFIG
+#undef USE_VOLTAGE_CORRECTION
//#undef USE_2C_STYLE_CONFIG
+//#undef USE_TACTICAL_STROBE_MODE
+
+// reduce size a bit
+#define NO_LOWPASS_WHILE_ASLEEP
+
diff --git a/spaghetti-monster/anduril/cfg-mateminco-mf01-mini.h b/spaghetti-monster/anduril/cfg-mateminco-mf01-mini.h
index 86e8c26..09b684f 100644
--- a/spaghetti-monster/anduril/cfg-mateminco-mf01-mini.h
+++ b/spaghetti-monster/anduril/cfg-mateminco-mf01-mini.h
@@ -55,4 +55,9 @@
// too big, remove stuff to make room
#undef USE_RAMP_AFTER_MOON_CONFIG
#undef USE_RAMP_SPEED_CONFIG
+#undef USE_VOLTAGE_CORRECTION
//#undef USE_2C_STYLE_CONFIG
+
+// reduce size a bit
+#define NO_LOWPASS_WHILE_ASLEEP
+
diff --git a/spaghetti-monster/anduril/ramp-mode.c b/spaghetti-monster/anduril/ramp-mode.c
index 93b936a..8c49b11 100644
--- a/spaghetti-monster/anduril/ramp-mode.c
+++ b/spaghetti-monster/anduril/ramp-mode.c
@@ -396,7 +396,12 @@ uint8_t steady_state(Event event, uint16_t arg) {
// 3H: momentary turbo (on lights with no tint ramping)
else if (event == EV_click3_hold) {
if (! arg) { // first frame only, to allow thermal regulation to work
+ #ifdef USE_2C_STYLE_CONFIG
+ uint8_t tl = style_2c ? MAX_LEVEL : turbo_level;
+ set_level_and_therm_target(tl);
+ #else
set_level_and_therm_target(turbo_level);
+ #endif
}
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.