🩹 Relocate Fan conditionals, sanity-checks (#25731)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
Jason Smith
2023-04-22 20:27:01 -07:00
committed by GitHub
parent 95cfc98fe4
commit ce85b98db4
3 changed files with 53 additions and 49 deletions

View File

@@ -1233,17 +1233,6 @@
#define CANNOT_EMBED_CONFIGURATION defined(__AVR__)
#endif
// Fan Kickstart
#if FAN_KICKSTART_TIME && !defined(FAN_KICKSTART_POWER)
#define FAN_KICKSTART_POWER 180
#endif
#if FAN_MIN_PWM == 0 && FAN_MAX_PWM == 255
#define CALC_FAN_SPEED(f) (f ?: FAN_OFF_PWM)
#else
#define CALC_FAN_SPEED(f) (f ? map(f, 1, 255, FAN_MIN_PWM, FAN_MAX_PWM) : FAN_OFF_PWM)
#endif
// Input shaping
#if EITHER(INPUT_SHAPING_X, INPUT_SHAPING_Y)
#define HAS_ZV_SHAPING 1