Gurmeet Athwal
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
0 deletions
-
Marlin/src/module/temperature.cpp
-
Marlin/src/module/temperature.h
|
|
@ -204,6 +204,16 @@ const char str_t_thermal_runaway[] PROGMEM = STR_T_THERMAL_RUNAWAY, |
|
|
|
if (target >= FAN_COUNT) return; |
|
|
|
|
|
|
|
fan_speed[target] = speed; |
|
|
|
report_fan_speed(target); |
|
|
|
} |
|
|
|
|
|
|
|
/**
|
|
|
|
* Report print fan speed for a target extruder |
|
|
|
*/ |
|
|
|
void Temperature::report_fan_speed(const uint8_t target) { |
|
|
|
if (target >= FAN_COUNT) return; |
|
|
|
PORT_REDIRECT(SERIAL_BOTH); |
|
|
|
SERIAL_ECHOLNPAIR("M106 P", target, " S", fan_speed[target]); |
|
|
|
} |
|
|
|
|
|
|
|
#if EITHER(PROBING_FANS_OFF, ADVANCED_PAUSE_FANS_PAUSE) |
|
|
|
|
|
@ -483,6 +483,7 @@ class Temperature { |
|
|
|
#define FANS_LOOP(I) LOOP_L_N(I, FAN_COUNT) |
|
|
|
|
|
|
|
static void set_fan_speed(const uint8_t target, const uint16_t speed); |
|
|
|
static void report_fan_speed(const uint8_t target); |
|
|
|
|
|
|
|
#if EITHER(PROBING_FANS_OFF, ADVANCED_PAUSE_FANS_PAUSE) |
|
|
|
static bool fans_paused; |
|
|
|