Skip to content

Commit

Permalink
remove extra define of CALC_FAN_SPEED
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 23, 2023
1 parent 36662c9 commit 2789cfe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Marlin/src/inc/Conditionals_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -2726,12 +2726,6 @@
#define HAS_FANMUX 1
#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

/**
* Controller Fan Settings
*/
Expand Down

0 comments on commit 2789cfe

Please sign in to comment.