Better singlenozzle stored fan speed menus (#15921)
This commit is contained in:
parent
967f951789
commit
e81b946f06
@ -249,6 +249,7 @@ namespace Language_en {
|
|||||||
PROGMEM Language_Str MSG_CHAMBER = _UxGT("Enclosure");
|
PROGMEM Language_Str MSG_CHAMBER = _UxGT("Enclosure");
|
||||||
PROGMEM Language_Str MSG_FAN_SPEED = _UxGT("Fan Speed");
|
PROGMEM Language_Str MSG_FAN_SPEED = _UxGT("Fan Speed");
|
||||||
PROGMEM Language_Str MSG_FAN_SPEED_N = _UxGT("Fan Speed =");
|
PROGMEM Language_Str MSG_FAN_SPEED_N = _UxGT("Fan Speed =");
|
||||||
|
PROGMEM Language_Str MSG_STORED_FAN_N = _UxGT("Stored Fan =");
|
||||||
PROGMEM Language_Str MSG_EXTRA_FAN_SPEED = _UxGT("Extra Fan Speed");
|
PROGMEM Language_Str MSG_EXTRA_FAN_SPEED = _UxGT("Extra Fan Speed");
|
||||||
PROGMEM Language_Str MSG_EXTRA_FAN_SPEED_N = _UxGT("Extra Fan Speed =");
|
PROGMEM Language_Str MSG_EXTRA_FAN_SPEED_N = _UxGT("Extra Fan Speed =");
|
||||||
PROGMEM Language_Str MSG_FLOW = _UxGT("Flow");
|
PROGMEM Language_Str MSG_FLOW = _UxGT("Flow");
|
||||||
|
@ -211,6 +211,9 @@ void menu_temperature() {
|
|||||||
#if ENABLED(EXTRA_FAN_SPEED)
|
#if ENABLED(EXTRA_FAN_SPEED)
|
||||||
EDIT_ITEM_FAST_N(percent, 2, MSG_EXTRA_FAN_SPEED_N, &thermalManager.new_fan_speed[1], 3, 255);
|
EDIT_ITEM_FAST_N(percent, 2, MSG_EXTRA_FAN_SPEED_N, &thermalManager.new_fan_speed[1], 3, 255);
|
||||||
#endif
|
#endif
|
||||||
|
#elif ENABLED(SINGLENOZZLE) && EXTRUDERS > 1
|
||||||
|
editable.uint8 = thermalManager.fan_speed[1];
|
||||||
|
EDIT_ITEM_FAST_N(percent, 2, MSG_STORED_FAN_N, &editable.uint8, 0, 255, []{ thermalManager.set_fan_speed(1, editable.uint8); });
|
||||||
#endif
|
#endif
|
||||||
#if HAS_FAN2
|
#if HAS_FAN2
|
||||||
editable.uint8 = thermalManager.fan_speed[2];
|
editable.uint8 = thermalManager.fan_speed[2];
|
||||||
@ -218,6 +221,9 @@ void menu_temperature() {
|
|||||||
#if ENABLED(EXTRA_FAN_SPEED)
|
#if ENABLED(EXTRA_FAN_SPEED)
|
||||||
EDIT_ITEM_FAST_N(percent, 3, MSG_EXTRA_FAN_SPEED_N, &thermalManager.new_fan_speed[2], 3, 255);
|
EDIT_ITEM_FAST_N(percent, 3, MSG_EXTRA_FAN_SPEED_N, &thermalManager.new_fan_speed[2], 3, 255);
|
||||||
#endif
|
#endif
|
||||||
|
#elif ENABLED(SINGLENOZZLE) && EXTRUDERS > 2
|
||||||
|
editable.uint8 = thermalManager.fan_speed[2];
|
||||||
|
EDIT_ITEM_FAST_N(percent, 3, MSG_STORED_FAN_N, &editable.uint8, 0, 255, []{ thermalManager.set_fan_speed(2, editable.uint8); });
|
||||||
#endif
|
#endif
|
||||||
#endif // FAN_COUNT > 0
|
#endif // FAN_COUNT > 0
|
||||||
|
|
||||||
|
@ -160,6 +160,9 @@ void menu_tune() {
|
|||||||
#if ENABLED(EXTRA_FAN_SPEED)
|
#if ENABLED(EXTRA_FAN_SPEED)
|
||||||
EDIT_ITEM_FAST_N(percent, 2, MSG_EXTRA_FAN_SPEED_N, &thermalManager.new_fan_speed[1], 3, 255);
|
EDIT_ITEM_FAST_N(percent, 2, MSG_EXTRA_FAN_SPEED_N, &thermalManager.new_fan_speed[1], 3, 255);
|
||||||
#endif
|
#endif
|
||||||
|
#elif ENABLED(SINGLENOZZLE) && EXTRUDERS > 1
|
||||||
|
editable.uint8 = thermalManager.fan_speed[1];
|
||||||
|
EDIT_ITEM_FAST_N(percent, 2, MSG_STORED_FAN_N, &editable.uint8, 0, 255, []{ thermalManager.set_fan_speed(1, editable.uint8); });
|
||||||
#endif
|
#endif
|
||||||
#if HAS_FAN2
|
#if HAS_FAN2
|
||||||
editable.uint8 = thermalManager.fan_speed[2];
|
editable.uint8 = thermalManager.fan_speed[2];
|
||||||
@ -167,6 +170,9 @@ void menu_tune() {
|
|||||||
#if ENABLED(EXTRA_FAN_SPEED)
|
#if ENABLED(EXTRA_FAN_SPEED)
|
||||||
EDIT_ITEM_FAST_N(percent, 3, MSG_EXTRA_FAN_SPEED_N, &thermalManager.new_fan_speed[2], 3, 255);
|
EDIT_ITEM_FAST_N(percent, 3, MSG_EXTRA_FAN_SPEED_N, &thermalManager.new_fan_speed[2], 3, 255);
|
||||||
#endif
|
#endif
|
||||||
|
#elif ENABLED(SINGLENOZZLE) && EXTRUDERS > 2
|
||||||
|
editable.uint8 = thermalManager.fan_speed[2];
|
||||||
|
EDIT_ITEM_FAST_N(percent, 3, MSG_STORED_FAN_N, &editable.uint8, 0, 255, []{ thermalManager.set_fan_speed(2, editable.uint8); });
|
||||||
#endif
|
#endif
|
||||||
#endif // FAN_COUNT > 0
|
#endif // FAN_COUNT > 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user