From 765fbd3e92139a57ad09a5f90d8f8d9588391784 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Mon, 11 Apr 2022 17:42:31 +0200 Subject: [PATCH] Fix argument of lcd_selftest_fan_auto to be uint8_t --- Firmware/ultralcd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index b9b07d43..83e3492a 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -225,7 +225,7 @@ enum class FanCheck : uint_least8_t { * * @returns a TestError noerror, extruderFan, printFan or swappedFan. */ -static FanCheck lcd_selftest_fan_auto(int _fan); +static FanCheck lcd_selftest_fan_auto(uint8_t _fan); #endif //FANCHECK #ifdef PAT9125 @@ -7608,7 +7608,7 @@ static void lcd_selftest_measure_fans(uint8_t delay, uint8_t col, uint8_t row) { gcode_M123(); } -static FanCheck lcd_selftest_fan_auto(int _fan) +static FanCheck lcd_selftest_fan_auto(uint8_t _fan) { // speed threshold to differentiate between extruder and print fan static const int printFanThr = 70; // >=4200 RPM