Skip to content

Commit 19b494a

Browse files
committed
Make the fan thresholds configurable
1 parent 765fbd3 commit 19b494a

7 files changed

+18
-2
lines changed

Firmware/ultralcd.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -7611,10 +7611,10 @@ static void lcd_selftest_measure_fans(uint8_t delay, uint8_t col, uint8_t row) {
76117611
static FanCheck lcd_selftest_fan_auto(uint8_t _fan)
76127612
{
76137613
// speed threshold to differentiate between extruder and print fan
7614-
static const int printFanThr = 70; // >=4200 RPM
7614+
static const int printFanThr = FANCHECK_AUTO_PRINT_FAN_THRS; // >= FANCHECK_AUTO_PRINT_FAN_THRS RPS
76157615

76167616
// speed threshold to mark a fan as failed
7617-
static const int failThr = 20; // <1200 RPM would mean either a faulty Noctua, Altfan or print fan
7617+
static const int failThr = FANCHECK_AUTO_FAIL_THRS; // < FANCHECK_AUTO_FAIL_THRS RPM would mean either a faulty Noctua, Altfan or print fan
76187618

76197619
switch (_fan) {
76207620
case 0:

Firmware/variants/1_75mm_MK25-RAMBo10a-E3Dv6full.h

+3
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@
219219
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
220220
#define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed
221221

222+
#define FANCHECK_AUTO_PRINT_FAN_THRS 70 //[RPS] - Used during selftest to identify swapped fans automatically
223+
#define FANCHECK_AUTO_FAIL_THRS 20 //[RPS] - Used during selftest to identify a faulty fan
224+
222225

223226
/*------------------------------------
224227
LOAD/UNLOAD FILAMENT SETTINGS

Firmware/variants/1_75mm_MK25-RAMBo13a-E3Dv6full.h

+3
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@
220220
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
221221
#define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed
222222

223+
#define FANCHECK_AUTO_PRINT_FAN_THRS 70 //[RPS] - Used during selftest to identify swapped fans automatically
224+
#define FANCHECK_AUTO_FAIL_THRS 20 //[RPS] - Used during selftest to identify a faulty fan
225+
223226

224227
/*------------------------------------
225228
LOAD/UNLOAD FILAMENT SETTINGS

Firmware/variants/1_75mm_MK25S-RAMBo10a-E3Dv6full.h

+3
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@
219219
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
220220
#define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed
221221

222+
#define FANCHECK_AUTO_PRINT_FAN_THRS 70 //[RPS] - Used during selftest to identify swapped fans automatically
223+
#define FANCHECK_AUTO_FAIL_THRS 20 //[RPS] - Used during selftest to identify a faulty fan
224+
222225

223226
/*------------------------------------
224227
LOAD/UNLOAD FILAMENT SETTINGS

Firmware/variants/1_75mm_MK25S-RAMBo13a-E3Dv6full.h

+3
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@
220220
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
221221
#define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed
222222

223+
#define FANCHECK_AUTO_PRINT_FAN_THRS 70 //[RPS] - Used during selftest to identify swapped fans automatically
224+
#define FANCHECK_AUTO_FAIL_THRS 20 //[RPS] - Used during selftest to identify a faulty fan
225+
223226

224227
/*------------------------------------
225228
LOAD/UNLOAD FILAMENT SETTINGS

Firmware/variants/1_75mm_MK3-EINSy10a-E3Dv6full.h

+2
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@
355355
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
356356
#define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed
357357

358+
#define FANCHECK_AUTO_PRINT_FAN_THRS 70 //[RPS] - Used during selftest to identify swapped fans automatically
359+
#define FANCHECK_AUTO_FAIL_THRS 20 //[RPS] - Used during selftest to identify a faulty fan
358360

359361

360362
/*------------------------------------

Firmware/variants/1_75mm_MK3S-EINSy10a-E3Dv6full.h

+2
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@
359359
#define EXTRUDER_ALTFAN_DETECT
360360
#define EXTRUDER_ALTFAN_SPEED_SILENT 128
361361

362+
#define FANCHECK_AUTO_PRINT_FAN_THRS 70 //[RPS] - Used during selftest to identify swapped fans automatically
363+
#define FANCHECK_AUTO_FAIL_THRS 20 //[RPS] - Used during selftest to identify a faulty fan
362364

363365

364366
/*------------------------------------

0 commit comments

Comments
 (0)