Add typedef extra_fan_t

This commit is contained in:
Scott Lahteine
2021-03-19 16:39:05 -05:00
committed by Scott Lahteine
parent cfa6c7d45b
commit f7aaa2e1c7
3 changed files with 18 additions and 10 deletions

View File

@@ -561,8 +561,9 @@ class Temperature {
}
#if ENABLED(EXTRA_FAN_SPEED)
static uint8_t old_fan_speed[FAN_COUNT], new_fan_speed[FAN_COUNT];
static void set_temp_fan_speed(const uint8_t fan, const uint16_t tmp_temp);
typedef struct { uint8_t saved, speed; } extra_fan_t;
static extra_fan_t extra_fan_speed[FAN_COUNT];
static void set_temp_fan_speed(const uint8_t fan, const uint16_t command_or_speed);
#endif
#if EITHER(PROBING_FANS_OFF, ADVANCED_PAUSE_FANS_PAUSE)