Przeglądaj źródła

servo_endstop_angles -> servo_endstop_angle

Scott Lahteine 10 lat temu
rodzic
commit
9d151bb61b
1 zmienionych plików z 6 dodań i 6 usunięć
  1. 6
    6
      Marlin/Marlin_main.cpp

+ 6
- 6
Marlin/Marlin_main.cpp Wyświetl plik

316
 
316
 
317
 #if HAS_SERVO_ENDSTOPS
317
 #if HAS_SERVO_ENDSTOPS
318
   const int servo_endstop_id[] = SERVO_ENDSTOP_IDS;
318
   const int servo_endstop_id[] = SERVO_ENDSTOP_IDS;
319
-  const int servo_endstop_angles[][2] = SERVO_ENDSTOP_ANGLES;
319
+  const int servo_endstop_angle[][2] = SERVO_ENDSTOP_ANGLES;
320
 #endif
320
 #endif
321
 
321
 
322
 #ifdef BARICUDA
322
 #ifdef BARICUDA
581
   #if HAS_SERVO_ENDSTOPS
581
   #if HAS_SERVO_ENDSTOPS
582
     for (int i = 0; i < 3; i++)
582
     for (int i = 0; i < 3; i++)
583
       if (servo_endstop_id[i] >= 0)
583
       if (servo_endstop_id[i] >= 0)
584
-        servo[servo_endstop_id[i]].move(servo_endstop_angles[i][1]);
584
+        servo[servo_endstop_id[i]].move(servo_endstop_angle[i][1]);
585
   #endif
585
   #endif
586
 
586
 
587
 }
587
 }
1325
     #if HAS_SERVO_ENDSTOPS
1325
     #if HAS_SERVO_ENDSTOPS
1326
 
1326
 
1327
       // Engage Z Servo endstop if enabled
1327
       // Engage Z Servo endstop if enabled
1328
-      if (servo_endstop_id[Z_AXIS] >= 0) servo[servo_endstop_id[Z_AXIS]].move(servo_endstop_angles[Z_AXIS][0]);
1328
+      if (servo_endstop_id[Z_AXIS] >= 0) servo[servo_endstop_id[Z_AXIS]].move(servo_endstop_angle[Z_AXIS][0]);
1329
 
1329
 
1330
     #elif defined(Z_PROBE_ALLEN_KEY)
1330
     #elif defined(Z_PROBE_ALLEN_KEY)
1331
       feedrate = Z_PROBE_ALLEN_KEY_DEPLOY_1_FEEDRATE;
1331
       feedrate = Z_PROBE_ALLEN_KEY_DEPLOY_1_FEEDRATE;
1425
         #endif
1425
         #endif
1426
 
1426
 
1427
         // Change the Z servo angle
1427
         // Change the Z servo angle
1428
-        servo[servo_endstop_id[Z_AXIS]].move(servo_endstop_angles[Z_AXIS][1]);
1428
+        servo[servo_endstop_id[Z_AXIS]].move(servo_endstop_angle[Z_AXIS][1]);
1429
       }
1429
       }
1430
 
1430
 
1431
     #elif defined(Z_PROBE_ALLEN_KEY)
1431
     #elif defined(Z_PROBE_ALLEN_KEY)
1679
     #if HAS_SERVO_ENDSTOPS
1679
     #if HAS_SERVO_ENDSTOPS
1680
       // Engage Servo endstop if enabled
1680
       // Engage Servo endstop if enabled
1681
       if (axis != Z_AXIS && servo_endstop_id[axis] >= 0)
1681
       if (axis != Z_AXIS && servo_endstop_id[axis] >= 0)
1682
-        servo[servo_endstop_id[axis]].move(servo_endstop_angles[axis][0]);
1682
+        servo[servo_endstop_id[axis]].move(servo_endstop_angle[axis][0]);
1683
     #endif
1683
     #endif
1684
 
1684
 
1685
     // Set a flag for Z motor locking
1685
     // Set a flag for Z motor locking
1781
       #if HAS_SERVO_ENDSTOPS
1781
       #if HAS_SERVO_ENDSTOPS
1782
         // Retract Servo endstop if enabled
1782
         // Retract Servo endstop if enabled
1783
         if (servo_endstop_id[axis] >= 0)
1783
         if (servo_endstop_id[axis] >= 0)
1784
-          servo[servo_endstop_id[axis]].move(servo_endstop_angles[axis][1]);
1784
+          servo[servo_endstop_id[axis]].move(servo_endstop_angle[axis][1]);
1785
       #endif
1785
       #endif
1786
     }
1786
     }
1787
 
1787
 

Ładowanie…
Anuluj
Zapisz