Do not check for fanError if it is not enabled on resume

Fix typos
This commit is contained in:
Alex Voinea 2019-11-16 22:44:34 +02:00
parent e2e32b455a
commit 359c447127
1 changed files with 2 additions and 2 deletions

View File

@ -6652,6 +6652,7 @@ static void lcd_test_menu()
static bool fan_error_selftest() static bool fan_error_selftest()
{ {
#ifdef FANCHECK #ifdef FANCHECK
if (!fans_check_enabled) return 0;
fanSpeed = 255; fanSpeed = 255;
#ifdef FAN_SOFT_PWM #ifdef FAN_SOFT_PWM
@ -6682,9 +6683,8 @@ static bool fan_error_selftest()
return 1; return 1;
} }
#endif #endif
#endif //FANCHECK
return 0; return 0;
#endif //FANCHECK
} }
//! @brief Resume paused print //! @brief Resume paused print