Misc cleanup, whitespace
This commit is contained in:
parent
e64b7a3ab2
commit
43d3463d5d
@ -20,7 +20,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../inc/MarlinConfig.h"
|
#include "../inc/MarlinConfigPre.h"
|
||||||
|
|
||||||
#if ENABLED(BARICUDA)
|
#if ENABLED(BARICUDA)
|
||||||
|
|
||||||
|
@ -2460,10 +2460,10 @@ void Stepper::report_positions() {
|
|||||||
|
|
||||||
#define BABYSTEP_AXIS(AXIS, INVERT, DIR) { \
|
#define BABYSTEP_AXIS(AXIS, INVERT, DIR) { \
|
||||||
const uint8_t old_dir = _READ_DIR(AXIS); \
|
const uint8_t old_dir = _READ_DIR(AXIS); \
|
||||||
_ENABLE_AXIS(AXIS); \
|
_ENABLE_AXIS(AXIS); \
|
||||||
DELAY_NS(MINIMUM_STEPPER_PRE_DIR_DELAY); \
|
DELAY_NS(MINIMUM_STEPPER_PRE_DIR_DELAY); \
|
||||||
_APPLY_DIR(AXIS, _INVERT_DIR(AXIS)^DIR^INVERT); \
|
_APPLY_DIR(AXIS, _INVERT_DIR(AXIS)^DIR^INVERT); \
|
||||||
DELAY_NS(MINIMUM_STEPPER_POST_DIR_DELAY); \
|
DELAY_NS(MINIMUM_STEPPER_POST_DIR_DELAY); \
|
||||||
_SAVE_START; \
|
_SAVE_START; \
|
||||||
_APPLY_STEP(AXIS)(!_INVERT_STEP_PIN(AXIS), true); \
|
_APPLY_STEP(AXIS)(!_INVERT_STEP_PIN(AXIS), true); \
|
||||||
_PULSE_WAIT; \
|
_PULSE_WAIT; \
|
||||||
|
@ -2608,9 +2608,8 @@ void Temperature::tick() {
|
|||||||
|
|
||||||
#if ENABLED(FAN_SOFT_PWM)
|
#if ENABLED(FAN_SOFT_PWM)
|
||||||
#define _FAN_PWM(N) do{ \
|
#define _FAN_PWM(N) do{ \
|
||||||
uint8_t &spcf = soft_pwm_count_fan[N]; \
|
const uint8_t spcf = (soft_pwm_count_fan[N] & pwm_mask) + (soft_pwm_amount_fan[N] >> 1); \
|
||||||
spcf = (spcf & pwm_mask) + (soft_pwm_amount_fan[N] >> 1); \
|
WRITE_FAN(N, (spcf > pwm_mask)); \
|
||||||
WRITE_FAN(N, spcf > pwm_mask ? HIGH : LOW); \
|
|
||||||
}while(0)
|
}while(0)
|
||||||
#if HAS_FAN0
|
#if HAS_FAN0
|
||||||
_FAN_PWM(0);
|
_FAN_PWM(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user