#if ENABLED(COOLANT_CONTROL)
#if ENABLED(COOLANT_MIST)
case 7: M7(); break; // M7: Mist coolant ON
#endif
#if ENABLED(COOLANT_FLOOD)
case 8: M8(); break; // M8: Flood coolant ON
#endif
case 9: M9(); break; // M9: Coolant OFF
#endif
So you need COOLANT_CONTROL for M9 and you need COOLANT_MIST for M7 and COOLANT_FLOOD for M8
you should not have things after the define name, eg
#define COOLANT_CONTROL
#if ENABLED(COOLANT_CONTROL)
#define COOLANT_MIST // Enable if mist coolant is present
#define COOLANT_FLOOD // Enable if flood coolant is present
the pins are defined with COOLANT_MIST_PIN and COOLANT_FLOOD_PIN not in the above defines.
Cant explane M9 though...
Edited 1 time(s). Last edit at 03/05/2021 02:13AM by Dust.