Browse Source

Apply some #ifndef

Scott Lahteine 5 years ago
parent
commit
06324df072

+ 1
- 1
Marlin/src/HAL/HAL_STM32/fastio_STM32.h View File

45
 
45
 
46
 #define _BV32(b) (1UL << (b))
46
 #define _BV32(b) (1UL << (b))
47
 
47
 
48
-#if !defined(PWM)
48
+#ifndef PWM
49
   #define PWM OUTPUT
49
   #define PWM OUTPUT
50
 #endif
50
 #endif
51
 
51
 

+ 1
- 1
Marlin/src/feature/mixing.h View File

25
 
25
 
26
 //#define MIXER_NORMALIZER_DEBUG
26
 //#define MIXER_NORMALIZER_DEBUG
27
 
27
 
28
-#if !defined(__AVR__) // || DUAL_MIXING_EXTRUDER
28
+#ifndef __AVR__ // || DUAL_MIXING_EXTRUDER
29
   // Use 16-bit (or fastest) data for the integer mix factors
29
   // Use 16-bit (or fastest) data for the integer mix factors
30
   typedef uint_fast16_t mixer_comp_t;
30
   typedef uint_fast16_t mixer_comp_t;
31
   typedef uint_fast16_t mixer_accu_t;
31
   typedef uint_fast16_t mixer_accu_t;

+ 1
- 1
Marlin/src/pins/stm32/pins_THE_BORG.h View File

21
  */
21
  */
22
 #pragma once
22
 #pragma once
23
 
23
 
24
-#if !defined(STM32F7)
24
+#ifndef STM32F7
25
   #error "Oops! Select an STM32F7 board in 'Tools > Board.'"
25
   #error "Oops! Select an STM32F7 board in 'Tools > Board.'"
26
 #elif HOTENDS > 3 || E_STEPPERS > 3
26
 #elif HOTENDS > 3 || E_STEPPERS > 3
27
   #error "The-Borg supports up to 3 hotends / E-steppers."
27
   #error "The-Borg supports up to 3 hotends / E-steppers."

Loading…
Cancel
Save