From 591cb881cc24e99bcc715bb822686ddf3b5f66d2 Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Thu, 12 Apr 2018 18:24:30 +0200 Subject: [PATCH] selftest: false fan error fix, added message in case that manual fan error fails --- Firmware/ultralcd.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index ad69f627..a56d5a1c 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -6167,6 +6167,11 @@ bool lcd_selftest() _result = lcd_selftest_fan_dialog(0); #else //defined(TACH_0) _result = lcd_selftest_manual_fan_check(0, false); + if (!_result) + { + const char *_err; + lcd_selftest_error(7, _err, _err); //extruder fan not spinning + } #endif //defined(TACH_0) @@ -6177,6 +6182,12 @@ bool lcd_selftest() _result = lcd_selftest_fan_dialog(1); #else //defined(TACH_1) _result = lcd_selftest_manual_fan_check(1, false); + if (!_result) + { + const char *_err; + lcd_selftest_error(6, _err, _err); //print fan not spinning + } + #endif //defined(TACH_1) } @@ -6883,6 +6894,8 @@ static bool lcd_selftest_manual_fan_check(int _fan, bool check_opposite) int8_t enc_dif = 0; KEEPALIVE_STATE(PAUSED_FOR_USER); + + button_pressed = false; do { switch (_fan)