Skip to content

Commit b372c22

Browse files
Djonker83thisiskeithbthinkyheadDejitaruJinEvilGremlin
authored
Bugfix 2.1.x (#1)
* 🩹 Update KEDI / GODI LCD_PINS_EN pin (MarlinFirmware#25886) * [cron] Bump distribution date (2023-05-29) * 🩹 Fix and improve GT2560 pins (MarlinFirmware#25890) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> * 🔨 Install 'heatshrink' if needed (MarlinFirmware#25896) * [cron] Bump distribution date (2023-05-30) * 🔧 Default has Heated Bed (MarlinFirmware#25895) Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com> * 🚸 Probe Wizard display fix * 🧑‍💻 ExtUI::onLevelingStart/Done for all leveling (MarlinFirmware#25913) * 🌐 Update Russian translation (MarlinFirmware#25840) * 🌐 Remove unused strings * 🔧 Update LCD with NeoPixel Contrast (MarlinFirmware#25893) * [cron] Bump distribution date (2023-06-02) * 📝 M122 comment * 🔨 Clarify env error (MarlinFirmware#25915) * 🔨 Fix pins debugging for Simulator * 🎨 Lowercase method / data member names (MarlinFirmware#25914) * 🧑‍💻 numtostr use functions * 🧑‍💻 Dump BOTH and EITHER macros (MarlinFirmware#25908) * 🧑‍💻 Remove LOOP macros (MarlinFirmware#25917) * [cron] Bump distribution date (2023-06-03) * 🎨 Lowercase followup (MarlinFirmware#25923) Followup to MarlinFirmware#25914 * 🔨 STM32H723VG (1024KB) (MarlinFirmware#25921) * 🩹 Endstop hit state followup (MarlinFirmware#25885) Followup to MarlinFirmware#25574 * 🧑‍💻 Fix narrowing conversions (MarlinFirmware#25924) * 🔧 BTT SKR 3 has onboard endstop pullups (MarlinFirmware#24876) * 🐛 Fix M25/M125 for LCDs with ui.resume_print (MarlinFirmware#24877) * [cron] Bump distribution date (2023-06-04) * ✏️ Fix LCD contrast typo (MarlinFirmware#25929) * 🩹 Fix D576 buffer underrun reporting (MarlinFirmware#25931) * [cron] Bump distribution date (2023-06-05) * 🔧 TMC Driver axis baud for Soft Serial (MarlinFirmware#25664) * 🎨 Detab C/C++ * 🧑‍💻 Dir change is AxisBits Followup to MarlinFirmware#25761 * 🩹 Wrap HAS_DISPLAY for if() Followup to MarlinFirmware#24877 * 🧑‍💻 Fix mfconfig trailing space * [cron] Bump distribution date (2023-06-06) * 🩹 Fix JyersUI corner pos Followup to MarlinFirmware#25631 * 🧑‍💻 Bypass error in build_example * 🧑‍💻 Suppress narrowing warnings Followup to MarlinFirmware#25924 * ⚡️ Mixer label in PROGMEM * 🩹 Conditional include probe.h --------- Co-authored-by: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Co-authored-by: thinkyhead <thinkyhead@users.noreply.github.com> Co-authored-by: DejitaruJin <dejitarujin@gmail.com> Co-authored-by: EvilGremlin <22657714+EvilGremlin@users.noreply.github.com> Co-authored-by: I3DBeeTech <129617321+I3DBeeTech@users.noreply.github.com> Co-authored-by: alextrical <35117191+alextrical@users.noreply.github.com> Co-authored-by: ellensp <530024+ellensp@users.noreply.github.com> Co-authored-by: Manuel McLure <manuel@mclure.org> Co-authored-by: Giuliano Zaro <3684609+GMagician@users.noreply.github.com> Co-authored-by: Andrew <18502096+classicrocker883@users.noreply.github.com> Co-authored-by: kisslorand <50251547+kisslorand@users.noreply.github.com> Co-authored-by: Roi Rodríguez Huertas <roiamorin69@gmail.com>
1 parent cfe3e57 commit b372c22

File tree

493 files changed

+7275
-5613
lines changed

Some content is hidden

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

493 files changed

+7275
-5613
lines changed

Marlin/Configuration.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
*/
267267
//#define MAGNETIC_PARKING_EXTRUDER
268268

269-
#if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)
269+
#if ANY(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)
270270

271271
#define PARKING_EXTRUDER_PARKING_X { -78, 184 } // X positions for parking the extruders
272272
#define PARKING_EXTRUDER_GRAB_DISTANCE 1 // (mm) Distance to move beyond the parking point to grab the extruder
@@ -419,7 +419,7 @@
419419
#define POWER_TIMEOUT 30 // (s) Turn off power if the machine is idle for this duration
420420
//#define POWER_OFF_DELAY 60 // (s) Delay of poweroff after M81 command. Useful to let fans run for extra time.
421421
#endif
422-
#if EITHER(AUTO_POWER_CONTROL, POWER_OFF_WAIT_FOR_COOLDOWN)
422+
#if ANY(AUTO_POWER_CONTROL, POWER_OFF_WAIT_FOR_COOLDOWN)
423423
//#define AUTO_POWER_E_TEMP 50 // (°C) PSU on if any extruder is over this temperature
424424
//#define AUTO_POWER_CHAMBER_TEMP 30 // (°C) PSU on if the chamber is over this temperature
425425
//#define AUTO_POWER_COOLER_TEMP 26 // (°C) PSU on if the cooler is over this temperature
@@ -921,7 +921,7 @@
921921
#define DELTA_CALIBRATION_DEFAULT_POINTS 4
922922
#endif
923923

924-
#if EITHER(DELTA_AUTO_CALIBRATION, DELTA_CALIBRATION_MENU)
924+
#if ANY(DELTA_AUTO_CALIBRATION, DELTA_CALIBRATION_MENU)
925925
// Step size for paper-test probing
926926
#define PROBE_MANUALLY_STEP 0.05 // (mm)
927927
#endif
@@ -965,7 +965,7 @@
965965
*/
966966
//#define MORGAN_SCARA
967967
//#define MP_SCARA
968-
#if EITHER(MORGAN_SCARA, MP_SCARA)
968+
#if ANY(MORGAN_SCARA, MP_SCARA)
969969
// If movement is choppy try lowering this value
970970
#define DEFAULT_SEGMENTS_PER_SECOND 200
971971

@@ -1809,7 +1809,7 @@
18091809
#define MAX_SOFTWARE_ENDSTOP_W
18101810
#endif
18111811

1812-
#if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)
1812+
#if ANY(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)
18131813
//#define SOFT_ENDSTOPS_MENU_ITEM // Enable/Disable software endstops from the LCD
18141814
#endif
18151815

@@ -2046,7 +2046,7 @@
20462046

20472047
#endif
20482048

2049-
#if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)
2049+
#if ANY(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)
20502050

20512051
// Set the number of grid points per dimension.
20522052
#define GRID_MAX_POINTS_X 10
@@ -3340,7 +3340,7 @@
33403340
//#define TOUCH_OFFSET_Y 257
33413341
//#define TOUCH_ORIENTATION TOUCH_LANDSCAPE
33423342

3343-
#if BOTH(TOUCH_SCREEN_CALIBRATION, EEPROM_SETTINGS)
3343+
#if ALL(TOUCH_SCREEN_CALIBRATION, EEPROM_SETTINGS)
33443344
#define TOUCH_CALIBRATION_AUTO_SAVE // Auto save successful calibration values to EEPROM
33453345
#endif
33463346

@@ -3437,7 +3437,7 @@
34373437
//#define RGB_LED
34383438
//#define RGBW_LED
34393439

3440-
#if EITHER(RGB_LED, RGBW_LED)
3440+
#if ANY(RGB_LED, RGBW_LED)
34413441
//#define RGB_LED_R_PIN 34
34423442
//#define RGB_LED_G_PIN 43
34433443
//#define RGB_LED_B_PIN 35

Marlin/Configuration_adv.h

+21-21
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
//#define ADAPTIVE_FAN_SLOWING // Slow down the part-cooling fan if the temperature drops
311311
#if ENABLED(ADAPTIVE_FAN_SLOWING)
312312
//#define REPORT_ADAPTIVE_FAN_SLOWING // Report fan slowing activity to the console
313-
#if EITHER(MPCTEMP, PIDTEMP)
313+
#if ANY(MPCTEMP, PIDTEMP)
314314
//#define TEMP_TUNING_MAINTAIN_FAN // Don't slow down the fan speed during M303 or M306 T
315315
#endif
316316
#endif
@@ -759,10 +759,10 @@
759759
#if ENABLED(NEOPIXEL_LED)
760760
//#define CASE_LIGHT_USE_NEOPIXEL // Use NeoPixel LED as case light
761761
#endif
762-
#if EITHER(RGB_LED, RGBW_LED)
762+
#if ANY(RGB_LED, RGBW_LED)
763763
//#define CASE_LIGHT_USE_RGB_LED // Use RGB / RGBW LED as case light
764764
#endif
765-
#if EITHER(CASE_LIGHT_USE_NEOPIXEL, CASE_LIGHT_USE_RGB_LED)
765+
#if ANY(CASE_LIGHT_USE_NEOPIXEL, CASE_LIGHT_USE_RGB_LED)
766766
#define CASE_LIGHT_DEFAULT_COLOR { 255, 255, 255, 255 } // { Red, Green, Blue, White }
767767
#endif
768768
#endif
@@ -1175,7 +1175,7 @@
11751175
*/
11761176
//#define INPUT_SHAPING_X
11771177
//#define INPUT_SHAPING_Y
1178-
#if EITHER(INPUT_SHAPING_X, INPUT_SHAPING_Y)
1178+
#if ANY(INPUT_SHAPING_X, INPUT_SHAPING_Y)
11791179
#if ENABLED(INPUT_SHAPING_X)
11801180
#define SHAPING_FREQ_X 40 // (Hz) The default dominant resonant frequency on the X axis.
11811181
#define SHAPING_ZETA_X 0.15f // Damping ratio of the X axis (range: 0.0 = no damping to 1.0 = critical damping).
@@ -1417,7 +1417,7 @@
14171417
*/
14181418
//#define DIGIPOT_MCP4018 // Requires https://github.com/felias-fogg/SlowSoftI2CMaster
14191419
//#define DIGIPOT_MCP4451
1420-
#if EITHER(DIGIPOT_MCP4018, DIGIPOT_MCP4451)
1420+
#if ANY(DIGIPOT_MCP4018, DIGIPOT_MCP4451)
14211421
#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT:4 AZTEEG_X3_PRO:8 MKS_SBASE:5 MIGHTYBOARD_REVE:5
14221422

14231423
// Actual motor currents in Amps. The number of entries must match DIGIPOT_I2C_NUM_CHANNELS.
@@ -1474,7 +1474,7 @@
14741474
//
14751475
//#define LCD_BACKLIGHT_TIMEOUT_MINS 1 // (minutes) Timeout before turning off the backlight
14761476

1477-
#if HAS_BED_PROBE && EITHER(HAS_MARLINUI_MENU, HAS_TFT_LVGL_UI)
1477+
#if HAS_BED_PROBE && ANY(HAS_MARLINUI_MENU, HAS_TFT_LVGL_UI)
14781478
//#define PROBE_OFFSET_WIZARD // Add a Probe Z Offset calibration option to the LCD menu
14791479
#if ENABLED(PROBE_OFFSET_WIZARD)
14801480
/**
@@ -1543,14 +1543,14 @@
15431543
*/
15441544
#define SHOW_BOOTSCREEN // Show the Marlin bootscreen on startup. ** ENABLE FOR PRODUCTION **
15451545
#if ENABLED(SHOW_BOOTSCREEN)
1546-
#define BOOTSCREEN_TIMEOUT 4000 // (ms) Total Duration to display the boot screen(s)
1547-
#if EITHER(HAS_MARLINUI_U8GLIB, TFT_COLOR_UI)
1546+
#define BOOTSCREEN_TIMEOUT 3000 // (ms) Total Duration to display the boot screen(s)
1547+
#if ANY(HAS_MARLINUI_U8GLIB, TFT_COLOR_UI)
15481548
#define BOOT_MARLIN_LOGO_SMALL // Show a smaller Marlin logo on the Boot Screen (saving lots of flash)
15491549
#endif
15501550
#if HAS_MARLINUI_U8GLIB
15511551
//#define BOOT_MARLIN_LOGO_ANIMATED // Animated Marlin logo. Costs ~3260 (or ~940) bytes of flash.
15521552
#endif
1553-
#if EITHER(HAS_MARLINUI_U8GLIB, TOUCH_UI_FTDI_EVE)
1553+
#if ANY(HAS_MARLINUI_U8GLIB, TOUCH_UI_FTDI_EVE)
15541554
//#define SHOW_CUSTOM_BOOTSCREEN // Show the bitmap in Marlin/_Bootscreen.h on startup.
15551555
#endif
15561556
#endif
@@ -1615,13 +1615,13 @@
16151615
#define SET_REMAINING_TIME // Add 'R' parameter to set remaining time
16161616
//#define SET_INTERACTION_TIME // Add 'C' parameter to set time until next filament change or other user interaction
16171617
//#define M73_REPORT // Report M73 values to host
1618-
#if BOTH(M73_REPORT, HAS_MEDIA)
1618+
#if ALL(M73_REPORT, HAS_MEDIA)
16191619
#define M73_REPORT_SD_ONLY // Report only when printing from SD
16201620
#endif
16211621
#endif
16221622

16231623
// LCD Print Progress options. Multiple times may be displayed in turn.
1624-
#if HAS_DISPLAY && EITHER(HAS_MEDIA, SET_PROGRESS_MANUALLY)
1624+
#if HAS_DISPLAY && ANY(HAS_MEDIA, SET_PROGRESS_MANUALLY)
16251625
#define SHOW_PROGRESS_PERCENT // Show print progress percentage (doesn't affect progress bar)
16261626
#define SHOW_ELAPSED_TIME // Display elapsed printing time (prefix 'E')
16271627
//#define SHOW_REMAINING_TIME // Display estimated time to completion (prefix 'R')
@@ -1630,7 +1630,7 @@
16301630
#endif
16311631
//#define PRINT_PROGRESS_SHOW_DECIMALS // Show/report progress with decimal digits, not all UIs support this
16321632

1633-
#if EITHER(HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL)
1633+
#if ANY(HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL)
16341634
//#define LCD_PROGRESS_BAR // Show a progress bar on HD44780 LCDs for SD printing
16351635
#if ENABLED(LCD_PROGRESS_BAR)
16361636
#define PROGRESS_BAR_BAR_TIME 2000 // (ms) Amount of time to show the bar
@@ -2301,15 +2301,15 @@
23012301
//#define PROBING_MARGIN_BACK PROBING_MARGIN
23022302
#endif
23032303

2304-
#if EITHER(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL)
2304+
#if ANY(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL)
23052305
// Override the mesh area if the automatic (max) area is too large
23062306
//#define MESH_MIN_X MESH_INSET
23072307
//#define MESH_MIN_Y MESH_INSET
23082308
//#define MESH_MAX_X X_BED_SIZE - (MESH_INSET)
23092309
//#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
23102310
#endif
23112311

2312-
#if BOTH(AUTO_BED_LEVELING_UBL, EEPROM_SETTINGS)
2312+
#if ALL(AUTO_BED_LEVELING_UBL, EEPROM_SETTINGS)
23132313
//#define OPTIMIZED_MESH_STORAGE // Store mesh with less precision to save EEPROM space
23142314
#endif
23152315

@@ -2379,7 +2379,7 @@
23792379
#endif
23802380

23812381
// G76 options
2382-
#if BOTH(PTC_PROBE, PTC_BED)
2382+
#if ALL(PTC_PROBE, PTC_BED)
23832383
// Park position to wait for probe cooldown
23842384
#define PTC_PARK_POS { 0, 0, 100 }
23852385

@@ -2421,7 +2421,7 @@
24212421
// G5 Bézier Curve Support with XYZE destination and IJPQ offsets
24222422
//#define BEZIER_CURVE_SUPPORT // Requires ~2666 bytes
24232423

2424-
#if EITHER(ARC_SUPPORT, BEZIER_CURVE_SUPPORT)
2424+
#if ANY(ARC_SUPPORT, BEZIER_CURVE_SUPPORT)
24252425
//#define CNC_WORKSPACE_PLANES // Allow G2/G3/G5 to operate in XY, ZX, or YZ planes
24262426
#endif
24272427

@@ -2507,8 +2507,8 @@
25072507

25082508
// The number of linear moves that can be in the planner at once.
25092509
// The value of BLOCK_BUFFER_SIZE must be a power of 2 (e.g., 8, 16, 32)
2510-
#if BOTH(HAS_MEDIA, DIRECT_STEPPING)
2511-
#define BLOCK_BUFFER_SIZE 16
2510+
#if ALL(HAS_MEDIA, DIRECT_STEPPING)
2511+
#define BLOCK_BUFFER_SIZE 8
25122512
#elif HAS_MEDIA
25132513
#define BLOCK_BUFFER_SIZE 16
25142514
#else
@@ -3289,7 +3289,7 @@
32893289
*/
32903290
//#define SENSORLESS_HOMING // StallGuard capable drivers only
32913291

3292-
#if EITHER(SENSORLESS_HOMING, SENSORLESS_PROBING)
3292+
#if ANY(SENSORLESS_HOMING, SENSORLESS_PROBING)
32933293
// TMC2209: 0...255. TMC2130: -64...63
32943294
#define X_STALL_SENSITIVITY 8
32953295
#define X2_STALL_SENSITIVITY X_STALL_SENSITIVITY
@@ -3452,7 +3452,7 @@
34523452
*/
34533453
//#define SPINDLE_FEATURE
34543454
//#define LASER_FEATURE
3455-
#if EITHER(SPINDLE_FEATURE, LASER_FEATURE)
3455+
#if ANY(SPINDLE_FEATURE, LASER_FEATURE)
34563456
#define SPINDLE_LASER_ACTIVE_STATE LOW // Set to "HIGH" if SPINDLE_LASER_ENA_PIN is active HIGH
34573457

34583458
#define SPINDLE_LASER_USE_PWM // Enable if your controller supports setting the speed/power
@@ -4204,7 +4204,7 @@
42044204
//#define WIFISUPPORT // Marlin embedded WiFi management
42054205
//#define ESP3D_WIFISUPPORT // ESP3D Library WiFi management (https://github.com/luc-github/ESP3DLib)
42064206

4207-
#if EITHER(WIFISUPPORT, ESP3D_WIFISUPPORT)
4207+
#if ANY(WIFISUPPORT, ESP3D_WIFISUPPORT)
42084208
//#define WEBSUPPORT // Start a webserver (which may include auto-discovery)
42094209
//#define OTASUPPORT // Support over-the-air firmware updates
42104210
//#define WIFI_CUSTOM_COMMAND // Accept feature config commands (e.g., WiFi ESP3D) from the host

Marlin/Version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* here we define this default string as the date where the latest release
4242
* version was tagged.
4343
*/
44-
//#define STRING_DISTRIBUTION_DATE "2023-05-27"
44+
//#define STRING_DISTRIBUTION_DATE "2023-06-06"
4545

4646
/**
4747
* Defines a generic printer name to be output to the LCD after booting Marlin.

Marlin/src/HAL/AVR/HAL_SPI.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void spiBegin() {
198198
// output pin high - like sending 0xFF
199199
WRITE(SD_MOSI_PIN, HIGH);
200200

201-
LOOP_L_N(i, 8) {
201+
for (uint8_t i = 0; i < 8; ++i) {
202202
WRITE(SD_SCK_PIN, HIGH);
203203

204204
nop; // adjust so SCK is nice
@@ -225,7 +225,7 @@ void spiBegin() {
225225
void spiSend(uint8_t data) {
226226
// no interrupts during byte send - about 8µs
227227
cli();
228-
LOOP_L_N(i, 8) {
228+
for (uint8_t i = 0; i < 8; ++i) {
229229
WRITE(SD_SCK_PIN, LOW);
230230
WRITE(SD_MOSI_PIN, data & 0x80);
231231
data <<= 1;

Marlin/src/HAL/AVR/MarlinSerial.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
static constexpr bool DROPPED_RX = false;
281281
static constexpr bool RX_FRAMING_ERRORS = false;
282282
static constexpr bool MAX_RX_QUEUED = false;
283-
static constexpr bool RX_OVERRUNS = BOTH(HAS_DGUS_LCD, SERIAL_STATS_RX_BUFFER_OVERRUNS);
283+
static constexpr bool RX_OVERRUNS = ALL(HAS_DGUS_LCD, SERIAL_STATS_RX_BUFFER_OVERRUNS);
284284
};
285285

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

Marlin/src/HAL/AVR/eeprom.cpp

+1-1
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/fast_pwm.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void MarlinHAL::set_pwm_frequency(const pin_t pin, const uint16_t f_desired) {
132132

133133
DEBUG_ECHOLNPGM("f=", f);
134134
DEBUG_ECHOLNPGM("(prescaler loop)");
135-
LOOP_L_N(i, COUNT(prescaler)) { // Loop through all prescaler values
135+
for (uint8_t i = 0; i < COUNT(prescaler); ++i) { // Loop through all prescaler values
136136
const uint32_t p = prescaler[i]; // Extend to 32 bits for calculations
137137
DEBUG_ECHOLNPGM("prescaler[", i, "]=", p);
138138
uint16_t res_fast_temp, res_pc_temp;
@@ -232,7 +232,7 @@ void MarlinHAL::init_pwm_timers() {
232232
#endif
233233
};
234234

235-
LOOP_L_N(i, COUNT(pwm_pin))
235+
for (uint8_t i = 0; i < COUNT(pwm_pin); ++i)
236236
set_pwm_frequency(pwm_pin[i], 1000);
237237
}
238238

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

+2-2
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/AVR/pinsDebug.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@
7777

7878
void PRINT_ARRAY_NAME(uint8_t x) {
7979
PGM_P const name_mem_pointer = (PGM_P)pgm_read_ptr(&pin_array[x].name);
80-
LOOP_L_N(y, MAX_NAME_LENGTH) {
80+
for (uint8_t y = 0; y < MAX_NAME_LENGTH; ++y) {
8181
char temp_char = pgm_read_byte(name_mem_pointer + y);
8282
if (temp_char != 0)
8383
SERIAL_CHAR(temp_char);
8484
else {
85-
LOOP_L_N(i, MAX_NAME_LENGTH - y) SERIAL_CHAR(' ');
85+
for (uint8_t i = 0; i < MAX_NAME_LENGTH - y; ++i) SERIAL_CHAR(' ');
8686
break;
8787
}
8888
}

Marlin/src/HAL/AVR/u8g_com_HAL_AVR_sw_spi.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void u8g_spiSend_sw_AVR_mode_0(uint8_t val) {
8888
volatile uint8_t *outData = u8g_outData,
8989
*outClock = u8g_outClock;
9090
U8G_ATOMIC_START();
91-
LOOP_L_N(i, 8) {
91+
for (uint8_t i = 0; i < 8; ++i) {
9292
if (val & 0x80)
9393
*outData |= bitData;
9494
else
@@ -108,7 +108,7 @@ void u8g_spiSend_sw_AVR_mode_3(uint8_t val) {
108108
volatile uint8_t *outData = u8g_outData,
109109
*outClock = u8g_outClock;
110110
U8G_ATOMIC_START();
111-
LOOP_L_N(i, 8) {
111+
for (uint8_t i = 0; i < 8; ++i) {
112112
*outClock &= bitNotClock;
113113
if (val & 0x80)
114114
*outData |= bitData;

Marlin/src/HAL/DUE/HAL_SPI.cpp

+1-1
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/dogm/u8g_com_HAL_DUE_sw_spi_shared.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Pio *SCK_pPio, *MOSI_pPio;
8181
uint32_t SCK_dwMask, MOSI_dwMask;
8282

8383
void u8g_spiSend_sw_DUE_mode_0(uint8_t val) { // 3MHz
84-
LOOP_L_N(i, 8) {
84+
for (uint8_t i = 0; i < 8; ++i) {
8585
if (val & 0x80)
8686
MOSI_pPio->PIO_SODR = MOSI_dwMask;
8787
else
@@ -95,7 +95,7 @@ void u8g_spiSend_sw_DUE_mode_0(uint8_t val) { // 3MHz
9595
}
9696

9797
void u8g_spiSend_sw_DUE_mode_3(uint8_t val) { // 3.5MHz
98-
LOOP_L_N(i, 8) {
98+
for (uint8_t i = 0; i < 8; ++i) {
9999
SCK_pPio->PIO_CODR = SCK_dwMask;
100100
DELAY_NS(50);
101101
if (val & 0x80)

Marlin/src/HAL/DUE/fastio/G2_PWM.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extern PWM_map ISR_table[NUM_PWMS];
6363
extern uint32_t motor_current_setting[3];
6464

6565
#define IR_BIT(p) (WITHIN(p, 0, 3) ? (p) : (p) + 4)
66-
#define COPY_ACTIVE_TABLE() do{ LOOP_L_N(i, 6) work_table[i] = active_table[i]; }while(0)
66+
#define COPY_ACTIVE_TABLE() do{ for (uint8_t i = 0; i < 6; ++i) work_table[i] = active_table[i]; }while(0)
6767

6868
#define PWM_MR0 19999 // base repetition rate minus one count - 20mS
6969
#define PWM_PR 24 // prescaler value - prescaler divide by 24 + 1 - 1 MHz output

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

+1-1
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

0 commit comments

Comments
 (0)