Skip to content

Commit 2e4b037

Browse files
committed
♻️ EITHER/BOTH => ANY/ALL
1 parent fa85e9e commit 2e4b037

File tree

296 files changed

+864
-864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+864
-864
lines changed

Marlin/src/HAL/AVR/MarlinSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
static constexpr bool DROPPED_RX = false;
284284
static constexpr bool RX_FRAMING_ERRORS = false;
285285
static constexpr bool MAX_RX_QUEUED = false;
286-
static constexpr bool RX_OVERRUNS = BOTH(HAS_DGUS_LCD, SERIAL_STATS_RX_BUFFER_OVERRUNS);
286+
static constexpr bool RX_OVERRUNS = ALL(HAS_DGUS_LCD, SERIAL_STATS_RX_BUFFER_OVERRUNS);
287287
};
288288

289289
typedef Serial1Class< MarlinSerial< LCDSerialCfg<LCD_SERIAL_PORT> > > MSerialLCD;

Marlin/src/HAL/AVR/eeprom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "../../inc/MarlinConfig.h"
2525

26-
#if EITHER(EEPROM_SETTINGS, SD_FIRMWARE_UPDATE)
26+
#if ANY(EEPROM_SETTINGS, SD_FIRMWARE_UPDATE)
2727

2828
/**
2929
* PersistentStore for Arduino-style EEPROM interface

Marlin/src/HAL/AVR/inc/SanityCheck.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@
9595
/**
9696
* The Trinamic library includes SoftwareSerial.h, leading to a compile error.
9797
*/
98-
#if BOTH(HAS_TRINAMIC_CONFIG, ENDSTOP_INTERRUPTS_FEATURE)
98+
#if ALL(HAS_TRINAMIC_CONFIG, ENDSTOP_INTERRUPTS_FEATURE)
9999
#error "TMCStepper includes SoftwareSerial.h which is incompatible with ENDSTOP_INTERRUPTS_FEATURE. Disable ENDSTOP_INTERRUPTS_FEATURE to continue."
100100
#endif
101101

102-
#if BOTH(HAS_TMC_SW_SERIAL, MONITOR_DRIVER_STATUS)
102+
#if ALL(HAS_TMC_SW_SERIAL, MONITOR_DRIVER_STATUS)
103103
#error "MONITOR_DRIVER_STATUS causes performance issues when used with SoftwareSerial-connected drivers. Disable MONITOR_DRIVER_STATUS or use hardware serial to continue."
104104
#endif
105105

Marlin/src/HAL/DUE/HAL_SPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// Public functions
4343
// ------------------------
4444

45-
#if EITHER(DUE_SOFTWARE_SPI, FORCE_SOFT_SPI)
45+
#if ANY(DUE_SOFTWARE_SPI, FORCE_SOFT_SPI)
4646

4747
// ------------------------
4848
// Software SPI

Marlin/src/HAL/DUE/inc/Conditionals_post.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323

2424
#if USE_FALLBACK_EEPROM
2525
#define FLASH_EEPROM_EMULATION
26-
#elif EITHER(I2C_EEPROM, SPI_EEPROM)
26+
#elif ANY(I2C_EEPROM, SPI_EEPROM)
2727
#define USE_SHARED_EEPROM 1
2828
#endif

Marlin/src/HAL/ESP32/HAL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void MarlinHAL::init_board() {
165165
}
166166

167167
void MarlinHAL::idletask() {
168-
#if BOTH(WIFISUPPORT, OTASUPPORT)
168+
#if ALL(WIFISUPPORT, OTASUPPORT)
169169
OTA_handle();
170170
#endif
171171
TERN_(ESP3D_WIFISUPPORT, esp3dlib.idletask());

Marlin/src/HAL/ESP32/inc/SanityCheck.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#error "TMC220x Software Serial is not supported on ESP32."
4141
#endif
4242

43-
#if BOTH(WIFISUPPORT, ESP3D_WIFISUPPORT)
43+
#if ALL(WIFISUPPORT, ESP3D_WIFISUPPORT)
4444
#error "Only enable one WiFi option, either WIFISUPPORT or ESP3D_WIFISUPPORT."
4545
#endif
4646

@@ -52,18 +52,18 @@
5252
#error "FAST_PWM_FAN is not available on TinyBee."
5353
#endif
5454

55-
#if BOTH(I2S_STEPPER_STREAM, BABYSTEPPING) && DISABLED(INTEGRATED_BABYSTEPPING)
55+
#if ALL(I2S_STEPPER_STREAM, BABYSTEPPING) && DISABLED(INTEGRATED_BABYSTEPPING)
5656
#error "BABYSTEPPING on I2S stream requires INTEGRATED_BABYSTEPPING."
5757
#endif
5858

5959
#if USING_PULLDOWNS
6060
#error "PULLDOWN pin mode is not available on ESP32 boards."
6161
#endif
6262

63-
#if BOTH(I2S_STEPPER_STREAM, LIN_ADVANCE) && DISABLED(EXPERIMENTAL_I2S_LA)
63+
#if ALL(I2S_STEPPER_STREAM, LIN_ADVANCE) && DISABLED(EXPERIMENTAL_I2S_LA)
6464
#error "I2S stream is currently incompatible with LIN_ADVANCE."
6565
#endif
6666

67-
#if BOTH(I2S_STEPPER_STREAM, PRINTCOUNTER) && PRINTCOUNTER_SAVE_INTERVAL > 0 && DISABLED(PRINTCOUNTER_SYNC)
67+
#if ALL(I2S_STEPPER_STREAM, PRINTCOUNTER) && PRINTCOUNTER_SAVE_INTERVAL > 0 && DISABLED(PRINTCOUNTER_SYNC)
6868
#error "PRINTCOUNTER_SAVE_INTERVAL may cause issues on ESP32 with an I2S expander. Define PRINTCOUNTER_SYNC in Configuration.h for an imperfect solution."
6969
#endif

Marlin/src/HAL/ESP32/ota.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include "../../inc/MarlinConfigPre.h"
2424

25-
#if BOTH(WIFISUPPORT, OTASUPPORT)
25+
#if ALL(WIFISUPPORT, OTASUPPORT)
2626

2727
#include <WiFi.h>
2828
#include <ESPmDNS.h>

Marlin/src/HAL/ESP32/spiffs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "../../inc/MarlinConfigPre.h"
2525

26-
#if BOTH(WIFISUPPORT, WEBSUPPORT)
26+
#if ALL(WIFISUPPORT, WEBSUPPORT)
2727

2828
#include "../../core/serial.h"
2929

Marlin/src/HAL/ESP32/u8g_esp32_spi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "../../inc/MarlinConfig.h"
2727

28-
#if EITHER(MKS_MINI_12864, FYSETC_MINI_12864_2_1)
28+
#if ANY(MKS_MINI_12864, FYSETC_MINI_12864_2_1)
2929

3030
#include <U8glib-HAL.h>
3131
#include "../shared/HAL_SPI.h"
@@ -101,6 +101,6 @@ uint8_t u8g_eps_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_pt
101101
return 1;
102102
}
103103

104-
#endif // EITHER(MKS_MINI_12864, FYSETC_MINI_12864_2_1)
104+
#endif // ANY(MKS_MINI_12864, FYSETC_MINI_12864_2_1)
105105

106106
#endif // ARDUINO_ARCH_ESP32

0 commit comments

Comments
 (0)