From edae0dd31d23bed9746932f02d52671d80ee4952 Mon Sep 17 00:00:00 2001 From: Phil Hord Date: Tue, 13 Oct 2015 17:48:41 -0400 Subject: [PATCH] Reduce lookahead "error" to "notice" The marlin firmware reportedly reports "Error" instead of "!!", indicating a machine failure which is followed by a full power-down. The Octoprint GCode-sender assumes a reported Error means the print has failed and the machine turned off. In Teacup we report an "Error" when lookahead was too slow to join movements, but this is interpreted as an emergency-stop by Octoprint who then stops the job and leaves the printer idle with all the heaters running. Change this "Error" to a "Notice" to avoid this problem. Add a comment prefix while we're at it to fit the de facto standard better. See http://reprap.org/wiki/G-code --- dda_lookahead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dda_lookahead.c b/dda_lookahead.c index aea4909..aa5294a 100644 --- a/dda_lookahead.c +++ b/dda_lookahead.c @@ -324,7 +324,7 @@ void dda_join_moves(DDA *prev, DDA *current) { // If we were not fast enough, any feedback will happen outside the atomic block: if(timeout) { - sersendf_P(PSTR("Error: look ahead not fast enough\r\n")); + sersendf_P(PSTR("// Notice: look ahead not fast enough\r\n")); lookahead_timeout++; } }