mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-31 14:12:52 +00:00
Merge pull request #7991 from thinkyhead/bf1_M106_memorize
[1.1.x] Add EXTRA_FAN_SPEED feature
This commit is contained in:
commit
10d72f31c2
33 changed files with 333 additions and 17 deletions
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -354,6 +354,10 @@ extern float soft_endstop_min[XYZ], soft_endstop_max[XYZ];
|
|||
|
||||
#if FAN_COUNT > 0
|
||||
extern int16_t fanSpeeds[FAN_COUNT];
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
extern int16_t old_fanSpeeds[FAN_COUNT],
|
||||
new_fanSpeeds[FAN_COUNT];
|
||||
#endif
|
||||
#if ENABLED(PROBING_FANS_OFF)
|
||||
extern bool fans_paused;
|
||||
extern int16_t paused_fanSpeeds[FAN_COUNT];
|
||||
|
|
|
@ -117,8 +117,8 @@
|
|||
* M100 - Watch Free Memory (for debugging) (Requires M100_FREE_MEMORY_WATCHER)
|
||||
* M104 - Set extruder target temp.
|
||||
* M105 - Report current temperatures.
|
||||
* M106 - Fan on.
|
||||
* M107 - Fan off.
|
||||
* M106 - Set print fan speed.
|
||||
* M107 - Print fan off.
|
||||
* M108 - Break out of heating loops (M109, M190, M303). With no controller, breaks out of M0/M1. (Requires EMERGENCY_PARSER)
|
||||
* M109 - Sxxx Wait for extruder current temp to reach target temp. Waits only when heating
|
||||
* Rxxx Wait for extruder current temp to reach target temp. Waits when heating and cooling
|
||||
|
@ -479,6 +479,10 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
|
|||
|
||||
#if FAN_COUNT > 0
|
||||
int16_t fanSpeeds[FAN_COUNT] = { 0 };
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
int16_t old_fanSpeeds[FAN_COUNT],
|
||||
new_fanSpeeds[FAN_COUNT];
|
||||
#endif
|
||||
#if ENABLED(PROBING_FANS_OFF)
|
||||
bool fans_paused = false;
|
||||
int16_t paused_fanSpeeds[FAN_COUNT] = { 0 };
|
||||
|
@ -7453,12 +7457,39 @@ inline void gcode_M105() {
|
|||
*
|
||||
* S<int> Speed between 0-255
|
||||
* P<index> Fan index, if more than one fan
|
||||
*
|
||||
* With EXTRA_FAN_SPEED enabled:
|
||||
*
|
||||
* T<int> Restore/Use/Set Temporary Speed:
|
||||
* 1 = Restore previous speed after T2
|
||||
* 2 = Use temporary speed set with T3-255
|
||||
* 3-255 = Set the speed for use with T2
|
||||
*/
|
||||
inline void gcode_M106() {
|
||||
uint16_t s = parser.ushortval('S', 255);
|
||||
NOMORE(s, 255);
|
||||
const uint8_t p = parser.byteval('P', 0);
|
||||
if (p < FAN_COUNT) fanSpeeds[p] = s;
|
||||
const uint8_t p = parser.byteval('P');
|
||||
if (p < FAN_COUNT) {
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
const int16_t t = parser.intval('T');
|
||||
NOMORE(t, 255);
|
||||
if (t > 0) {
|
||||
switch (t) {
|
||||
case 1:
|
||||
fanSpeeds[p] = old_fanSpeeds[p];
|
||||
break;
|
||||
case 2:
|
||||
old_fanSpeeds[p] = fanSpeeds[p];
|
||||
fanSpeeds[p] = new_fanSpeeds[p];
|
||||
break;
|
||||
default:
|
||||
new_fanSpeeds[p] = t;
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
#endif // EXTRA_FAN_SPEED
|
||||
const uint16_t s = parser.ushortval('S', 255);
|
||||
fanSpeeds[p] = min(s, 255);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -807,6 +807,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -807,6 +807,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -777,6 +777,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -820,6 +820,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -812,6 +812,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -812,6 +812,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -812,6 +812,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -812,6 +812,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -817,6 +817,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -812,6 +812,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -810,6 +810,15 @@
|
|||
#define RETRACT_RECOVER_FEEDRATE_SWAP 8 // Default feedrate for recovering from swap retraction (mm/s)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Extra Fan Speed
|
||||
* Adds a secondary fan speed for each print-cooling fan.
|
||||
* 'M106 P<fan> T3-255' : Set a secondary speed for <fan>
|
||||
* 'M106 P<fan> T2' : Use the set secondary speed
|
||||
* 'M106 P<fan> T1' : Restore the previous fan speed
|
||||
*/
|
||||
//#define EXTRA_FAN_SPEED
|
||||
|
||||
/**
|
||||
* Advanced Pause
|
||||
* Experimental feature for filament change support and for parking the nozzle when paused.
|
||||
|
|
|
@ -398,6 +398,9 @@
|
|||
#ifndef MSG_FAN_SPEED
|
||||
#define MSG_FAN_SPEED _UxGT("Fan speed")
|
||||
#endif
|
||||
#ifndef MSG_EXTRA_FAN_SPEED
|
||||
#define MSG_EXTRA_FAN_SPEED _UxGT("Extra fan speed")
|
||||
#endif
|
||||
#ifndef MSG_FLOW
|
||||
#define MSG_FLOW _UxGT("Flow")
|
||||
#endif
|
||||
|
|
|
@ -1241,6 +1241,15 @@ void kill_screen(const char* lcd_msg) {
|
|||
|
||||
#endif // ADVANCED_PAUSE_FEATURE
|
||||
|
||||
// First Fan Speed title in "Tune" and "Control>Temperature" menus
|
||||
#if FAN_COUNT > 0 && HAS_FAN0
|
||||
#if FAN_COUNT > 1
|
||||
#define FAN_SPEED_1_SUFFIX " 1"
|
||||
#else
|
||||
#define FAN_SPEED_1_SUFFIX ""
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
*
|
||||
* "Tune" submenu
|
||||
|
@ -1296,18 +1305,22 @@ void kill_screen(const char* lcd_msg) {
|
|||
//
|
||||
#if FAN_COUNT > 0
|
||||
#if HAS_FAN0
|
||||
#if FAN_COUNT > 1
|
||||
#define MSG_1ST_FAN_SPEED MSG_FAN_SPEED " 1"
|
||||
#else
|
||||
#define MSG_1ST_FAN_SPEED MSG_FAN_SPEED
|
||||
#endif
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_1ST_FAN_SPEED, &fanSpeeds[0], 0, 255);
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED FAN_SPEED_1_SUFFIX, &fanSpeeds[0], 0, 255);
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_EXTRA_FAN_SPEED FAN_SPEED_1_SUFFIX, &new_fanSpeeds[0], 3, 255);
|
||||
#endif
|
||||
#endif
|
||||
#if HAS_FAN1
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 2", &fanSpeeds[1], 0, 255);
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_EXTRA_FAN_SPEED " 2", &new_fanSpeeds[1], 3, 255);
|
||||
#endif
|
||||
#endif
|
||||
#if HAS_FAN2
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 3", &fanSpeeds[2], 0, 255);
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_EXTRA_FAN_SPEED " 3", &new_fanSpeeds[2], 3, 255);
|
||||
#endif
|
||||
#endif
|
||||
#endif // FAN_COUNT > 0
|
||||
|
||||
|
@ -3317,18 +3330,22 @@ void kill_screen(const char* lcd_msg) {
|
|||
//
|
||||
#if FAN_COUNT > 0
|
||||
#if HAS_FAN0
|
||||
#if FAN_COUNT > 1
|
||||
#define MSG_1ST_FAN_SPEED MSG_FAN_SPEED " 1"
|
||||
#else
|
||||
#define MSG_1ST_FAN_SPEED MSG_FAN_SPEED
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED FAN_SPEED_1_SUFFIX, &fanSpeeds[0], 0, 255);
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_EXTRA_FAN_SPEED FAN_SPEED_1_SUFFIX, &new_fanSpeeds[0], 3, 255);
|
||||
#endif
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_1ST_FAN_SPEED, &fanSpeeds[0], 0, 255);
|
||||
#endif
|
||||
#if HAS_FAN1
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 2", &fanSpeeds[1], 0, 255);
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_EXTRA_FAN_SPEED " 2", &new_fanSpeeds[1], 3, 255);
|
||||
#endif
|
||||
#endif
|
||||
#if HAS_FAN2
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_FAN_SPEED " 3", &fanSpeeds[2], 0, 255);
|
||||
#if ENABLED(EXTRA_FAN_SPEED)
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_EXTRA_FAN_SPEED " 3", &new_fanSpeeds[2], 3, 255);
|
||||
#endif
|
||||
#endif
|
||||
#endif // FAN_COUNT > 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue