summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware/Tonokip_Firmware.pde
diff options
context:
space:
mode:
authorEmanuele Caruso <emanuele.caruso@gmail.com>2011-06-22 02:03:11 +0200
committerEmanuele Caruso <emanuele.caruso@gmail.com>2011-06-22 02:03:11 +0200
commit57c05dde4219454c9d3a21bfc31a824141674cd5 (patch)
tree268adb214f5b361438c45dfe29d1f9d36fcd4cbf /Tonokip_Firmware/Tonokip_Firmware.pde
parent8c4f65709535b76e322516d6d7506eb430ca6d0b (diff)
Now heat check is also disabled during retract moves, if DISABLE_CHECK_DURING_TRAVEL is enabled
Diffstat (limited to 'Tonokip_Firmware/Tonokip_Firmware.pde')
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index a5630a8..1957cf9 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -1021,6 +1021,8 @@ void linear_move(unsigned long axis_steps_remaining[]) // make linear move with
//If the move time is more than allowed in DISABLE_CHECK_DURING_TRAVEL, let's
// consider this a print move and perform heat management during it
if(time_for_move / 1000 > DISABLE_CHECK_DURING_TRAVEL) is_print_move = true;
+ //else, if the move is a retract, consider it as a travel move for the sake of this feature
+ else if(delta[3]>0 && delta[0] + delta[1] + delta[2] == 0) is_print_move = false;
#ifdef DEBUG_DISABLE_CHECK_DURING_TRAVEL
log_bool("_DISABLE_CHECK_DURING_TRAVEL - is_print_move", is_print_move);
#endif