-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller fan PWM Scaling and Kickstart #24873
Changes from 1 commit
2087a13
62c280a
8df0cca
6dad386
16106e3
b3e3a58
44589a9
05d51f9
834025e
79dcfe5
8e02730
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -309,19 +309,19 @@ PGMSTR(str_t_heating_failed, STR_T_HEATING_FAILED); | |
#endif | ||
|
||
#if EITHER(AUTO_POWER_E_FANS, HAS_FANCHECK) | ||
uint8_t Temperature::autofan_speed[HOTENDS]; // = { 0 } | ||
uint8_t Temperature::autofan_speed[HOTENDS] = {FAN_OFF_PWM}; | ||
#endif | ||
|
||
#if ENABLED(AUTO_POWER_CHAMBER_FAN) | ||
uint8_t Temperature::chamberfan_speed; // = 0 | ||
uint8_t Temperature::chamberfan_speed = {FAN_OFF_PWM} | ||
#endif | ||
|
||
#if ENABLED(AUTO_POWER_COOLER_FAN) | ||
uint8_t Temperature::coolerfan_speed; // = 0 | ||
uint8_t Temperature::coolerfan_speed = {FAN_OFF_PWM}; | ||
#endif | ||
|
||
#if BOTH(FAN_SOFT_PWM, USE_CONTROLLER_FAN) | ||
uint8_t Temperature::soft_pwm_controller_speed; | ||
uint8_t Temperature::soft_pwm_controller_speed = {FAN_OFF_PWM}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These three items are not arrays. |
||
#endif | ||
|
||
// Init fans according to whether they're native PWM or Software PWM | ||
|
@@ -345,11 +345,11 @@ PGMSTR(str_t_heating_failed, STR_T_HEATING_FAILED); | |
// HAS_FAN does not include CONTROLLER_FAN | ||
#if HAS_FAN | ||
|
||
uint8_t Temperature::fan_speed[FAN_COUNT]; // = { 0 } | ||
uint8_t Temperature::fan_speed[FAN_COUNT] = {FAN_OFF_PWM}; | ||
|
||
#if ENABLED(EXTRA_FAN_SPEED) | ||
|
||
Temperature::extra_fan_t Temperature::extra_fan_speed[FAN_COUNT]; | ||
Temperature::extra_fan_t Temperature::extra_fan_speed[FAN_COUNT] = {FAN_OFF_PWM}; | ||
|
||
/** | ||
* Handle the M106 P<fan> T<speed> command: | ||
|
@@ -376,7 +376,7 @@ PGMSTR(str_t_heating_failed, STR_T_HEATING_FAILED); | |
|
||
#if EITHER(PROBING_FANS_OFF, ADVANCED_PAUSE_FANS_PAUSE) | ||
bool Temperature::fans_paused; // = false; | ||
uint8_t Temperature::saved_fan_speed[FAN_COUNT]; // = { 0 } | ||
uint8_t Temperature::saved_fan_speed[FAN_COUNT] = {FAN_OFF_PWM}; | ||
#endif | ||
|
||
#if ENABLED(ADAPTIVE_FAN_SLOWING) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -917,7 +917,7 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0. | |
#if HAS_FAN && TOOLCHANGE_FS_FAN >= 0 | ||
thermalManager.fan_speed[TOOLCHANGE_FS_FAN] = toolchange_settings.fan_speed; | ||
gcode.dwell(SEC_TO_MS(toolchange_settings.fan_time)); | ||
thermalManager.fan_speed[TOOLCHANGE_FS_FAN] = 0; | ||
thermalManager.fan_speed[TOOLCHANGE_FS_FAN] = FAN_OFF_PWM; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When speed is set to 0 it is then applied to the PWM as |
||
#endif | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C++: All items to init the array must be included. Items after the last one are assumed to be 0.