Skip to content

Commit 50ad323

Browse files
GMagicianthinkyhead
andcommittedMay 17, 2023
🔧 Move SOFT_PWM_SCALE fallback to cpp (MarlinFirmware#25800)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
1 parent 03149b9 commit 50ad323

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎Marlin/src/module/temperature.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -3401,6 +3401,10 @@ void Temperature::isr() {
34013401

34023402
static int8_t temp_count = -1;
34033403
static ADCSensorState adc_sensor_state = StartupDelay;
3404+
3405+
#ifndef SOFT_PWM_SCALE
3406+
#define SOFT_PWM_SCALE 0
3407+
#endif
34043408
static uint8_t pwm_count = _BV(SOFT_PWM_SCALE);
34053409

34063410
// Avoid multiple loads of pwm_count

‎Marlin/src/module/temperature.h

-4
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)