Fix CONTROLLER_FAN options compile

This commit is contained in:
Scott Lahteine 2020-03-22 00:00:19 -05:00
parent 717c216851
commit fe154fa5de

View file

@ -58,7 +58,7 @@ class ControllerFan {
#if ENABLED(CONTROLLER_FAN_EDITABLE)
static controllerFan_settings_t settings;
#else
static const controllerFan_settings_t &settings = controllerFan_defaults;
static const controllerFan_settings_t constexpr &settings = controllerFan_defaults;
#endif
static inline bool state() { return speed > 0; }
static inline void init() { reset(); }