Add HAS_FAN and others

This commit is contained in:
Scott Lahteine
2020-04-27 04:41:18 -05:00
parent 3d45a4bd23
commit 8b3c7dda75
35 changed files with 85 additions and 90 deletions

View File

@@ -477,7 +477,7 @@ class Temperature {
static float analog_to_celsius_chamber(const int raw);
#endif
#if FAN_COUNT > 0
#if HAS_FAN
static uint8_t fan_speed[FAN_COUNT];
#define FANS_LOOP(I) LOOP_L_N(I, FAN_COUNT)
@@ -517,10 +517,10 @@ class Temperature {
void set_fans_paused(const bool p);
#endif
#endif // FAN_COUNT > 0
#endif // HAS_FAN
static inline void zero_fan_speeds() {
#if FAN_COUNT > 0
#if HAS_FAN
FANS_LOOP(i) set_fan_speed(i, 0);
#endif
}
@@ -634,7 +634,7 @@ class Temperature {
TERN_(AUTO_POWER_CONTROL, powerManager.power_on());
temp_bed.target =
#ifdef BED_MAXTEMP
_MIN(celsius, BED_MAXTEMP - 10)
_MIN(celsius, BED_MAX_TARGET)
#else
celsius
#endif