summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware
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
parent8c4f65709535b76e322516d6d7506eb430ca6d0b (diff)
Now heat check is also disabled during retract moves, if DISABLE_CHECK_DURING_TRAVEL is enabled
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde2
-rw-r--r--Tonokip_Firmware/configuration.h2
2 files changed, 3 insertions, 1 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
diff --git a/Tonokip_Firmware/configuration.h b/Tonokip_Firmware/configuration.h
index 86c9f39..2716de2 100644
--- a/Tonokip_Firmware/configuration.h
+++ b/Tonokip_Firmware/configuration.h
@@ -49,7 +49,7 @@ long max_travel_acceleration_units_per_sq_second[] = {500,500,50}; // X, Y, Z ma
//Uncomment the following line to disable heat management during the move
//#define DISABLE_CHECK_DURING_MOVE
#endif
-//Uncomment the following line to disable heat management during travel moves, strongly recommended if you are missing steps mid print.
+//Uncomment the following line to disable heat management during travel moves (and extruder-only moves, eg: retracts), strongly recommended if you are missing steps mid print.
//Probably this should remain commented if are using PID.
//It also defines the max milliseconds interval after which a travel move is not considered so for the sake of this feature.
#define DISABLE_CHECK_DURING_TRAVEL 1000