Browse Source

Tweak code formatting

Scott Lahteine 4 years ago
parent
commit
865071a946
2 changed files with 7 additions and 5 deletions
  1. 3
    1
      Marlin/src/gcode/feature/trinamic/M569.cpp
  2. 4
    4
      Marlin/src/inc/SanityCheck.h

+ 3
- 1
Marlin/src/gcode/feature/trinamic/M569.cpp View File

44
 static void set_stealth_status(const bool enable, const int8_t target_extruder) {
44
 static void set_stealth_status(const bool enable, const int8_t target_extruder) {
45
   #define TMC_SET_STEALTH(Q) tmc_set_stealthChop(stepper##Q, enable)
45
   #define TMC_SET_STEALTH(Q) tmc_set_stealthChop(stepper##Q, enable)
46
 
46
 
47
-  #if AXIS_HAS_STEALTHCHOP(X) || AXIS_HAS_STEALTHCHOP(X2) || AXIS_HAS_STEALTHCHOP(Y) || AXIS_HAS_STEALTHCHOP(Y2) || AXIS_HAS_STEALTHCHOP(Z) || AXIS_HAS_STEALTHCHOP(Z2) || AXIS_HAS_STEALTHCHOP(Z3)
47
+  #if    AXIS_HAS_STEALTHCHOP(X) || AXIS_HAS_STEALTHCHOP(X2) \
48
+      || AXIS_HAS_STEALTHCHOP(Y) || AXIS_HAS_STEALTHCHOP(Y2) \
49
+      || AXIS_HAS_STEALTHCHOP(Z) || AXIS_HAS_STEALTHCHOP(Z2) || AXIS_HAS_STEALTHCHOP(Z3)
48
     const uint8_t index = parser.byteval('I');
50
     const uint8_t index = parser.byteval('I');
49
   #endif
51
   #endif
50
 
52
 

+ 4
- 4
Marlin/src/inc/SanityCheck.h View File

2081
   #error "TMC2208 Software Serial is supported only on AVR, LPC1768, STM32F1 and STM32F4 platforms."
2081
   #error "TMC2208 Software Serial is supported only on AVR, LPC1768, STM32F1 and STM32F4 platforms."
2082
 #endif
2082
 #endif
2083
 
2083
 
2084
+#if ENABLED(DELTA) && (ENABLED(STEALTHCHOP_XY) != ENABLED(STEALTHCHOP_Z))
2085
+  #error "STEALTHCHOP_XY and STEALTHCHOP_Z must be the same on DELTA."
2086
+#endif
2087
+
2084
 #if ENABLED(SENSORLESS_HOMING)
2088
 #if ENABLED(SENSORLESS_HOMING)
2085
   // Require STEALTHCHOP for SENSORLESS_HOMING on DELTA as the transition from spreadCycle to stealthChop
2089
   // Require STEALTHCHOP for SENSORLESS_HOMING on DELTA as the transition from spreadCycle to stealthChop
2086
   // is necessary in order to reset the stallGuard indication between the initial movement of all three
2090
   // is necessary in order to reset the stallGuard indication between the initial movement of all three
2236
 #endif
2240
 #endif
2237
 #undef IN_CHAIN
2241
 #undef IN_CHAIN
2238
 
2242
 
2239
-#if ENABLED(DELTA) && (ENABLED(STEALTHCHOP_XY) != ENABLED(STEALTHCHOP_Z))
2240
-  #error "STEALTHCHOP_XY and STEALTHCHOP_Z must be the same on DELTA."
2241
-#endif
2242
-
2243
 /**
2243
 /**
2244
  * Digipot requirement
2244
  * Digipot requirement
2245
  */
2245
  */

Loading…
Cancel
Save