Skip to content

Commit 62a7bba

Browse files
committed
🩹 Fix null pwm_details
1 parent ce38260 commit 62a7bba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Marlin/src/HAL/LPC1768/pinsDebug.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
*/
3030

3131
#define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS
32-
#define pwm_details(pin) pin = pin // do nothing // print PWM details
33-
#define pwm_status(pin) false //Print a pin's PWM status. Return true if it's currently a PWM pin.
32+
#define pwm_details(pin) NOOP // do nothing
33+
#define pwm_status(pin) false // Print a pin's PWM status. Return true if it's currently a PWM pin.
3434
#define IS_ANALOG(P) (DIGITAL_PIN_TO_ANALOG_PIN(P) >= 0 ? 1 : 0)
3535
#define digitalRead_mod(p) extDigitalRead(p)
3636
#define PRINT_PORT(p)

Marlin/src/HAL/NATIVE_SIM/pinsDebug.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
*/
2828

2929
#define NUMBER_PINS_TOTAL NUM_DIGITAL_PINS
30-
#define pwm_details(pin) pin = pin // do nothing // print PWM details
31-
#define pwm_status(pin) false //Print a pin's PWM status. Return true if it's currently a PWM pin.
30+
#define pwm_details(pin) NOOP // do nothing
31+
#define pwm_status(pin) false // Print a pin's PWM status. Return true if it's currently a PWM pin.
3232
#define IS_ANALOG(P) (DIGITAL_PIN_TO_ANALOG_PIN(P) >= 0 ? 1 : 0)
3333
#define digitalRead_mod(p) digitalRead(p)
3434
#define PRINT_PORT(p)

0 commit comments

Comments
 (0)