Browse Source

Misc cleanup, whitespace

pull/1/head
Scott Lahteine 5 years ago
parent
commit
43d3463d5d
  1. 2
      Marlin/src/feature/baricuda.cpp
  2. 5
      Marlin/src/module/temperature.cpp

2
Marlin/src/feature/baricuda.cpp

@ -20,7 +20,7 @@
*
*/
#include "../inc/MarlinConfig.h"
#include "../inc/MarlinConfigPre.h"
#if ENABLED(BARICUDA)

5
Marlin/src/module/temperature.cpp

@ -2608,9 +2608,8 @@ void Temperature::tick() {
#if ENABLED(FAN_SOFT_PWM)
#define _FAN_PWM(N) do{ \
uint8_t &spcf = soft_pwm_count_fan[N]; \
spcf = (spcf & pwm_mask) + (soft_pwm_amount_fan[N] >> 1); \
WRITE_FAN(N, spcf > pwm_mask ? HIGH : LOW); \
const uint8_t spcf = (soft_pwm_count_fan[N] & pwm_mask) + (soft_pwm_amount_fan[N] >> 1); \
WRITE_FAN(N, (spcf > pwm_mask)); \
}while(0)
#if HAS_FAN0
_FAN_PWM(0);

Loading…
Cancel
Save