Fix Spindle/Laser compile error (#14312)
This commit is contained in:
@ -313,6 +313,7 @@ void _lcd_preheat(const int16_t endnum, const int16_t temph, const int16_t tempb
|
||||
#endif
|
||||
|
||||
inline void _lcd_spindle_laser_off() { set_spindle_laser_enabled(false); }
|
||||
void set_spindle_direction(bool);
|
||||
inline void _lcd_spindle_laser_on(const bool is_M4) {
|
||||
#if SPINDLE_DIR_CHANGE
|
||||
set_spindle_direction(is_M4);
|
||||
@ -329,7 +330,7 @@ void _lcd_preheat(const int16_t endnum, const int16_t temph, const int16_t tempb
|
||||
MENU_BACK(MSG_MAIN);
|
||||
if (spindle_laser_enabled()) {
|
||||
#if ENABLED(SPINDLE_LASER_PWM)
|
||||
MENU_ITEM_EDIT_CALLBACK(int3, MSG_LASER_POWER, &spindle_laser_power, SPEED_POWER_MIN, SPEED_POWER_MAX, update_spindle_laser_power);
|
||||
MENU_ITEM_EDIT_CALLBACK(uint8, MSG_LASER_POWER, &spindle_laser_power, SPEED_POWER_MIN, SPEED_POWER_MAX, update_spindle_laser_power);
|
||||
#endif
|
||||
MENU_ITEM(function, MSG_LASER_OFF, _lcd_spindle_laser_off);
|
||||
}
|
||||
|
@ -27,7 +27,7 @@
|
||||
char* ui8tostr4pct(const uint8_t i);
|
||||
|
||||
// Convert uint8_t to string with 123 format
|
||||
char* ui8tostr3(const uint8_t x);
|
||||
char* ui8tostr3(const uint8_t i);
|
||||
|
||||
// Convert int8_t to string with 123 format
|
||||
char* i8tostr3(const int8_t x);
|
||||
|
Reference in New Issue
Block a user