Fixed arc offset.

This commit is contained in:
Erik van der Zalm 2012-03-27 19:03:33 +02:00
parent 0c1b863755
commit ae0bf8068b

View File

@ -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()