Browse Source

Fix argument of lcd_selftest_fan_auto to be uint8_t

Yuri D'Elia 2 years ago
parent
commit
765fbd3e92
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Firmware/ultralcd.cpp

+ 2 - 2
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