Browse Source

#ifdef tweaks

Scott Lahteine 7 years ago
parent
commit
0891b58c30

+ 1
- 1
Marlin/Marlin.ino View File

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

+ 2
- 2
Marlin/src/HAL/HAL_LPC1768/u8g_com_HAL_LPC1768_sw_spi.cpp View File

55
 
55
 
56
 */
56
 */
57
 
57
 
58
-#if defined (TARGET_LPC1768)
58
+#ifdef TARGET_LPC1768
59
 
59
 
60
 #include <U8glib.h>
60
 #include <U8glib.h>
61
 #include "SoftwareSPI.h"
61
 #include "SoftwareSPI.h"
125
   return 1;
125
   return 1;
126
 }
126
 }
127
 
127
 
128
-#endif  // TARGET_LPC1768
128
+#endif // TARGET_LPC1768

+ 1
- 1
Marlin/src/libs/softspi.h View File

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

Loading…
Cancel
Save