Przeglądaj źródła

Fixed arc offset.

Erik van der Zalm 13 lat temu
rodzic
commit
ae0bf8068b
1 zmienionych plików z 12 dodań i 2 usunięć
  1. 12
    2
      Marlin/Marlin.pde

+ 12
- 2
Marlin/Marlin.pde Wyświetl plik

@@ -1328,8 +1328,18 @@ void get_coordinates()
1328 1328
 void get_arc_coordinates()
1329 1329
 {
1330 1330
    get_coordinates();
1331
-   if(code_seen('I')) offset[0] = code_value();
1332
-   if(code_seen('J')) offset[1] = code_value();
1331
+   if(code_seen('I')) {
1332
+     offset[0] = code_value();
1333
+   } 
1334
+   else {
1335
+     offset[0] = 0.0;
1336
+   }
1337
+   if(code_seen('J')) {
1338
+     offset[1] = code_value();
1339
+   }
1340
+   else {
1341
+     offset[1] = 0.0;
1342
+   }
1333 1343
 }
1334 1344
 
1335 1345
 void prepare_move()

Ładowanie…
Anuluj
Zapisz