Quellcode durchsuchen

Fix indent in stepper.h

Scott Lahteine vor 7 Jahren
Ursprung
Commit
43bdd0bfe4
1 geänderte Dateien mit 10 neuen und 10 gelöschten Zeilen
  1. 10
    10
      Marlin/src/module/stepper.h

+ 10
- 10
Marlin/src/module/stepper.h Datei anzeigen

@@ -269,19 +269,19 @@ class Stepper {
269 269
     inline static void set_position(const AxisEnum a, const int32_t &v) {
270 270
       planner.synchronize();
271 271
 
272
-    #ifdef __AVR__
273
-      // Protect the access to the position. Only required for AVR, as
274
-      //  any 32bit CPU offers atomic access to 32bit variables
275
-      const bool was_enabled = STEPPER_ISR_ENABLED();
276
-      if (was_enabled) DISABLE_STEPPER_DRIVER_INTERRUPT();
277
-    #endif
272
+      #ifdef __AVR__
273
+        // Protect the access to the position. Only required for AVR, as
274
+        //  any 32bit CPU offers atomic access to 32bit variables
275
+        const bool was_enabled = STEPPER_ISR_ENABLED();
276
+        if (was_enabled) DISABLE_STEPPER_DRIVER_INTERRUPT();
277
+      #endif
278 278
 
279 279
       count_position[a] = v;
280 280
 
281
-    #ifdef __AVR__
282
-      // Reenable Stepper ISR
283
-      if (was_enabled) ENABLE_STEPPER_DRIVER_INTERRUPT();
284
-    #endif
281
+      #ifdef __AVR__
282
+        // Reenable Stepper ISR
283
+        if (was_enabled) ENABLE_STEPPER_DRIVER_INTERRUPT();
284
+      #endif
285 285
     }
286 286
 
287 287
   private:

Laden…
Abbrechen
Speichern