From ae0bf8068bbf9ce2a950994960fed202dcb03a70 Mon Sep 17 00:00:00 2001 From: Erik van der Zalm Date: Tue, 27 Mar 2012 19:03:33 +0200 Subject: [PATCH] Fixed arc offset. --- Marlin/Marlin.pde | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin.pde b/Marlin/Marlin.pde index ce11d7ba2..5b1a13bab 100644 --- a/Marlin/Marlin.pde +++ b/Marlin/Marlin.pde @@ -1328,8 +1328,18 @@ void get_coordinates() void get_arc_coordinates() { get_coordinates(); - if(code_seen('I')) offset[0] = code_value(); - if(code_seen('J')) offset[1] = code_value(); + if(code_seen('I')) { + offset[0] = code_value(); + } + else { + offset[0] = 0.0; + } + if(code_seen('J')) { + offset[1] = code_value(); + } + else { + offset[1] = 0.0; + } } void prepare_move()