Skip to content

Commit 120a6a3

Browse files
GMagicianthinkyhead
authored andcommitted
🔧 Move SOFT_PWM_SCALE fallback to cpp (MarlinFirmware#25800)
Co-authored-by: Scott Lahteine <[email protected]>
1 parent b10ce16 commit 120a6a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Marlin/src/module/temperature.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3493,6 +3493,10 @@ void Temperature::isr() {
34933493

34943494
static int8_t temp_count = -1;
34953495
static ADCSensorState adc_sensor_state = StartupDelay;
3496+
3497+
#ifndef SOFT_PWM_SCALE
3498+
#define SOFT_PWM_SCALE 0
3499+
#endif
34963500
static uint8_t pwm_count = _BV(SOFT_PWM_SCALE);
34973501

34983502
// Avoid multiple loads of pwm_count

Marlin/src/module/temperature.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
#include "../feature/fancheck.h"
4242
#endif
4343

44-
#ifndef SOFT_PWM_SCALE
45-
#define SOFT_PWM_SCALE 0
46-
#endif
47-
4844
#define HOTEND_INDEX TERN(HAS_MULTI_HOTEND, e, 0)
4945
#define E_NAME TERN_(HAS_MULTI_HOTEND, e)
5046

0 commit comments

Comments
 (0)