From: Christian Thalhammer Date: Mon, 6 Feb 2012 11:28:33 +0000 (+0100) Subject: -disable TEMP Min MAX Kill while using PS_ON Pin X-Git-Tag: iwj-success-2012-07-29~70^2~18 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=14702089eec41982ae6dab3e7736716d3d98ffe9;p=marlin.git -disable TEMP Min MAX Kill while using PS_ON Pin ON GEN7 there is no temperature reading when power is off.. so Marlin would kill itself. There seems to be an update from "Traumflug" on GEN7 using standby VCC for thermistors. --- diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 371c6e5..0372a9b 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -763,13 +763,21 @@ ISR(TIMER0_COMPB_vect) for(unsigned char e = 0; e < EXTRUDERS; e++) { if(current_raw[e] >= maxttemp[e]) { target_raw[e] = 0; - max_temp_error(e); - kill();; + #if (PS_ON != -1) + { + max_temp_error(e); + kill();; + } + #endif } if(current_raw[e] <= minttemp[e]) { target_raw[e] = 0; - min_temp_error(e); - kill(); + #if (PS_ON != -1) + { + min_temp_error(e); + kill(); + } + #endif } }