Fix argument of lcd_selftest_fan_auto to be uint8_t

This commit is contained in:
Yuri D'Elia 2022-04-11 17:42:31 +02:00
parent 859aa4d283
commit 765fbd3e92

View File

@ -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