aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
}