|
|
@ -60,8 +60,10 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void GcodeSuite::M106() {
|
|
|
|
void GcodeSuite::M106() {
|
|
|
|
const uint8_t pfan = parser.byteval('P', _ALT_P);
|
|
|
|
const uint8_t pfan = parser.byteval('P', _ALT_P);
|
|
|
|
|
|
|
|
if (pfan >= _CNT_P) return;
|
|
|
|
if (pfan < _CNT_P) {
|
|
|
|
#if REDUNDANT_PART_COOLING_FAN
|
|
|
|
|
|
|
|
if (pfan == REDUNDANT_PART_COOLING_FAN) return;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(EXTRA_FAN_SPEED)
|
|
|
|
#if ENABLED(EXTRA_FAN_SPEED)
|
|
|
|
const uint16_t t = parser.intval('T');
|
|
|
|
const uint16_t t = parser.intval('T');
|
|
|
@ -93,7 +95,6 @@ void GcodeSuite::M106() {
|
|
|
|
if (TERN0(DUAL_X_CARRIAGE, idex_is_duplicating())) // pfan == 0 when duplicating
|
|
|
|
if (TERN0(DUAL_X_CARRIAGE, idex_is_duplicating())) // pfan == 0 when duplicating
|
|
|
|
thermalManager.set_fan_speed(1 - pfan, speed);
|
|
|
|
thermalManager.set_fan_speed(1 - pfan, speed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* M107: Fan Off
|
|
|
|
* M107: Fan Off
|
|
|
@ -101,6 +102,9 @@ void GcodeSuite::M106() {
|
|
|
|
void GcodeSuite::M107() {
|
|
|
|
void GcodeSuite::M107() {
|
|
|
|
const uint8_t pfan = parser.byteval('P', _ALT_P);
|
|
|
|
const uint8_t pfan = parser.byteval('P', _ALT_P);
|
|
|
|
if (pfan >= _CNT_P) return;
|
|
|
|
if (pfan >= _CNT_P) return;
|
|
|
|
|
|
|
|
#if REDUNDANT_PART_COOLING_FAN
|
|
|
|
|
|
|
|
if (pfan == REDUNDANT_PART_COOLING_FAN) return;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
thermalManager.set_fan_speed(pfan, 0);
|
|
|
|
thermalManager.set_fan_speed(pfan, 0);
|
|
|
|
|
|
|
|
|
|
|
|