From 4309c8951c5775955b4e8ebcd6f09319966cad0b Mon Sep 17 00:00:00 2001 From: Robert Pelnar Date: Fri, 23 Feb 2018 17:40:16 +0100 Subject: [PATCH] fix - false fancheck error at end of print --- Firmware/temperature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 80bcf2c4..4a56868f 100644 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -471,7 +471,7 @@ void checkFanSpeed() if ((fan_speed[0] == 0) && (current_temperature[0] > EXTRUDER_AUTO_FAN_TEMPERATURE)) fan_speed_errors[0]++; else fan_speed_errors[0] = 0; - if ((fan_speed[1] == 0) && (block_buffer[block_buffer_tail].fan_speed > MIN_PRINT_FAN_SPEED)) fan_speed_errors[1]++; + if ((fan_speed[1] == 0) && ((blocks_queued()?block_buffer[block_buffer_tail].fan_speed:fanSpeed) > MIN_PRINT_FAN_SPEED)) fan_speed_errors[1]++; else fan_speed_errors[1] = 0; if ((fan_speed_errors[0] > 5) && fans_check_enabled) {