General cleanup, use _BV
This commit is contained in:
@ -86,9 +86,9 @@ namespace Anycubic {
|
||||
|
||||
safe_delay(200);
|
||||
|
||||
// Enable levelling and Disable end stops during print
|
||||
// Enable leveling and Disable end stops during print
|
||||
// as Z home places nozzle above the bed so we need to allow it past the end stops
|
||||
injectCommands_P(AC_cmnd_enable_levelling);
|
||||
injectCommands_P(AC_cmnd_enable_leveling);
|
||||
|
||||
// Startup tunes are defined in Tunes.h
|
||||
//PlayTune(BEEPER_PIN, Anycubic_PowerOn, 1);
|
||||
@ -762,7 +762,7 @@ namespace Anycubic {
|
||||
selectedmeshpoint.x = selectedmeshpoint.y = 99;
|
||||
}
|
||||
break;
|
||||
case 'D': // Save Z Offset tables and restore levelling state
|
||||
case 'D': // Save Z Offset tables and restore leveling state
|
||||
if (!isPrinting()) {
|
||||
setAxisPosition_mm(1.0,Z);
|
||||
injectCommands_P(PSTR("M500"));
|
||||
@ -784,7 +784,7 @@ namespace Anycubic {
|
||||
float Zshift = atof(&panel_command[4]);
|
||||
setSoftEndstopState(false); // disable endstops
|
||||
// Allow temporary Z position nudging during print
|
||||
// From the levelling panel use the all points UI to adjust the print pos.
|
||||
// From the leveling panel use the all points UI to adjust the print pos.
|
||||
if (isPrinting()) {
|
||||
#if ACDEBUG(AC_INFO)
|
||||
SERIAL_ECHOLNPAIR("Change Zoffset from:", live_Zoffset, " to ", live_Zoffset + Zshift);
|
||||
|
@ -105,7 +105,7 @@
|
||||
|
||||
#define AC_cmnd_manual_load_filament PSTR("M83\nG1 E50 F700\nM82") // replace the manual panel commands with something a little faster
|
||||
#define AC_cmnd_manual_unload_filament PSTR("M83\nG1 E-50 F1200\nM82")
|
||||
#define AC_cmnd_enable_levelling PSTR("M420 S1 V1")
|
||||
#define AC_cmnd_enable_leveling PSTR("M420 S1 V1")
|
||||
#define AC_cmnd_power_loss_recovery PSTR("G28 X Y R5\nG28 Z") // Lift, home X and Y then home Z when in 'safe' position
|
||||
|
||||
namespace Anycubic {
|
||||
|
@ -56,7 +56,7 @@ static void event_handler(lv_obj_t *obj, lv_event_t event) {
|
||||
thermalManager.temp_hotend[uiCfg.curSprayerChoose].target = (float)HEATER_0_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1);
|
||||
}
|
||||
}
|
||||
#if !defined(SINGLENOZZLE) && HAS_MULTI_EXTRUDER
|
||||
#if DISABLED(SINGLENOZZLE) && HAS_MULTI_EXTRUDER
|
||||
else if ((int)thermalManager.temp_hotend[uiCfg.curSprayerChoose].target > (HEATER_1_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1))) {
|
||||
thermalManager.temp_hotend[uiCfg.curSprayerChoose].target = (float)HEATER_1_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1);
|
||||
}
|
||||
|
@ -35,10 +35,6 @@
|
||||
#include "../../module/motion.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(SINGLENOZZLE)
|
||||
#include "../../module/tool_change.h"
|
||||
#endif
|
||||
|
||||
//
|
||||
// "Temperature" submenu items
|
||||
//
|
||||
|
@ -38,10 +38,6 @@
|
||||
#include "../../feature/bedlevel/bedlevel.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(SINGLENOZZLE)
|
||||
#include "../../module/tool_change.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(BABYSTEPPING)
|
||||
|
||||
#include "../../feature/babystep.h"
|
||||
|
Reference in New Issue
Block a user