Parcourir la source

#ifdef tweaks

Scott Lahteine il y a 6 ans
Parent
révision
0891b58c30

+ 1
- 1
Marlin/Marlin.ino Voir le fichier

@@ -50,7 +50,7 @@
50 50
 
51 51
 #if ENABLED(HAVE_TMCDRIVER)
52 52
   #include <SPI.h>
53
-  #if defined(STM32F7)
53
+  #ifdef STM32F7
54 54
     #include "src/HAL/HAL_STM32F7/TMC2660.h"
55 55
   #else
56 56
     #include <TMC26XStepper.h>

+ 2
- 2
Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_sw_spi.cpp Voir le fichier

@@ -55,7 +55,7 @@
55 55
 
56 56
 */
57 57
 
58
-#if defined (TARGET_LPC1768)
58
+#ifdef TARGET_LPC1768
59 59
 
60 60
 #include <U8glib.h>
61 61
 #include "SoftwareSPI.h"
@@ -125,4 +125,4 @@ uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val,
125 125
   return 1;
126 126
 }
127 127
 
128
-#endif  // TARGET_LPC1768
128
+#endif // TARGET_LPC1768

+ 1
- 1
Marlin/src/libs/softspi.h Voir le fichier

@@ -195,7 +195,7 @@ static const pin_map_t pinMap[] = {
195 195
 || defined(__AVR_ATmega324__)\
196 196
 || defined(__AVR_ATmega16__)
197 197
 
198
-#if defined(VARIANT_MIGHTY)
198
+#ifdef VARIANT_MIGHTY
199 199
 // Mighty Layout
200 200
 static const pin_map_t pinMap[] = {
201 201
   {&DDRB, &PINB, &PORTB, 0},  // B0  0

Chargement…
Annuler
Enregistrer