Clean up formatting, wrap macros
This commit is contained in:
@ -700,7 +700,7 @@ void ChironTFT::PanelAction(uint8_t req) {
|
||||
|
||||
if (!isPrinting()) { // Ignore request if printing
|
||||
char MoveCmnd[30];
|
||||
sprintf_P(MoveCmnd, PSTR("G91\nG0 %s \nG90"), panel_command+3);
|
||||
sprintf_P(MoveCmnd, PSTR("G91\nG0%s\nG90"), panel_command + 3);
|
||||
#if ACDEBUG(AC_ACTION)
|
||||
SERIAL_ECHOLNPAIR("Move: ", MoveCmnd);
|
||||
#endif
|
||||
|
@ -700,13 +700,13 @@ void AnycubicTFTClass::GetCommandFromTFT() {
|
||||
unsigned int tempvalue;
|
||||
if (CodeSeen('S')) {
|
||||
tempvalue = constrain(CodeValue(), 0, 275);
|
||||
setTargetTemp_celsius(tempvalue, (extruder_t) E0);
|
||||
setTargetTemp_celsius(tempvalue, (extruder_t)E0);
|
||||
}
|
||||
else if (CodeSeen('C') && !isPrinting()) {
|
||||
if (getAxisPosition_mm(Z) < 10)
|
||||
injectCommands_P(PSTR("G1 Z10")); // RASE Z AXIS
|
||||
tempvalue = constrain(CodeValue(), 0, 275);
|
||||
setTargetTemp_celsius(tempvalue, (extruder_t) E0);
|
||||
setTargetTemp_celsius(tempvalue, (extruder_t)E0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -832,8 +832,8 @@ void AnycubicTFTClass::GetCommandFromTFT() {
|
||||
if (getAxisPosition_mm(Z) < 10)
|
||||
injectCommands_P(PSTR("G1 Z10")); // RASE Z AXIS
|
||||
|
||||
setTargetTemp_celsius(PREHEAT_1_TEMP_BED, (heater_t) BED);
|
||||
setTargetTemp_celsius(PREHEAT_1_TEMP_HOTEND, (extruder_t) E0);
|
||||
setTargetTemp_celsius(PREHEAT_1_TEMP_BED, (heater_t)BED);
|
||||
setTargetTemp_celsius(PREHEAT_1_TEMP_HOTEND, (extruder_t)E0);
|
||||
SENDLINE_PGM("OK");
|
||||
}
|
||||
break;
|
||||
@ -843,8 +843,8 @@ void AnycubicTFTClass::GetCommandFromTFT() {
|
||||
if (getAxisPosition_mm(Z) < 10)
|
||||
injectCommands_P(PSTR("G1 Z10")); // RASE Z AXIS
|
||||
|
||||
setTargetTemp_celsius(PREHEAT_2_TEMP_BED, (heater_t) BED);
|
||||
setTargetTemp_celsius(PREHEAT_2_TEMP_HOTEND, (extruder_t) E0);
|
||||
setTargetTemp_celsius(PREHEAT_2_TEMP_BED, (heater_t)BED);
|
||||
setTargetTemp_celsius(PREHEAT_2_TEMP_HOTEND, (extruder_t)E0);
|
||||
SENDLINE_PGM("OK");
|
||||
}
|
||||
break;
|
||||
|
@ -236,7 +236,7 @@ void disp_bed_temp() {
|
||||
}
|
||||
|
||||
void disp_fan_speed() {
|
||||
sprintf_P(public_buf_l, PSTR("%d%%"), thermalManager.fanSpeedPercent(0));
|
||||
sprintf_P(public_buf_l, PSTR("%d%%"), (int)thermalManager.fanSpeedPercent(0));
|
||||
lv_label_set_text(labelFan, public_buf_l);
|
||||
}
|
||||
|
||||
|
@ -178,11 +178,7 @@ void process_lcd_eb_command(const char *command) {
|
||||
#else
|
||||
0, 0,
|
||||
#endif
|
||||
#if ENABLED(SDSUPPORT)
|
||||
done_pct,
|
||||
#else
|
||||
0,
|
||||
#endif
|
||||
TERN(SDSUPPORT, done_pct, 0),
|
||||
elapsed_buffer
|
||||
);
|
||||
write_to_lcd(message_buffer);
|
||||
|
@ -296,21 +296,13 @@ namespace ExtUI {
|
||||
}
|
||||
|
||||
float getTargetFan_percent(const fan_t fan) {
|
||||
#if HAS_FAN
|
||||
return thermalManager.fanSpeedPercent(fan - FAN0);
|
||||
#else
|
||||
UNUSED(fan);
|
||||
return 0;
|
||||
#endif
|
||||
UNUSED(fan);
|
||||
return TERN0(HAS_FAN, thermalManager.fanSpeedPercent(fan - FAN0));
|
||||
}
|
||||
|
||||
float getActualFan_percent(const fan_t fan) {
|
||||
#if HAS_FAN
|
||||
return thermalManager.scaledFanSpeedPercent(fan - FAN0);
|
||||
#else
|
||||
UNUSED(fan);
|
||||
return 0;
|
||||
#endif
|
||||
UNUSED(fan);
|
||||
return TERN0(HAS_FAN, thermalManager.scaledFanSpeedPercent(fan - FAN0));
|
||||
}
|
||||
|
||||
float getAxisPosition_mm(const axis_t axis) {
|
||||
|
@ -102,11 +102,11 @@ namespace ExtUI {
|
||||
#if HAS_TRINAMIC_CONFIG
|
||||
float getAxisCurrent_mA(const axis_t);
|
||||
float getAxisCurrent_mA(const extruder_t);
|
||||
void setAxisCurrent_mA(const_float_t , const axis_t);
|
||||
void setAxisCurrent_mA(const_float_t , const extruder_t);
|
||||
void setAxisCurrent_mA(const_float_t, const axis_t);
|
||||
void setAxisCurrent_mA(const_float_t, const extruder_t);
|
||||
|
||||
int getTMCBumpSensitivity(const axis_t);
|
||||
void setTMCBumpSensitivity(const_float_t , const axis_t);
|
||||
void setTMCBumpSensitivity(const_float_t, const axis_t);
|
||||
#endif
|
||||
|
||||
celsius_float_t getActualTemp_celsius(const heater_t);
|
||||
@ -195,18 +195,18 @@ namespace ExtUI {
|
||||
char* getFilamentUsed_str(char buffer[21]);
|
||||
#endif
|
||||
|
||||
void setTargetTemp_celsius(const_float_t , const heater_t);
|
||||
void setTargetTemp_celsius(const_float_t , const extruder_t);
|
||||
void setTargetFan_percent(const_float_t , const fan_t);
|
||||
void setTargetTemp_celsius(const_float_t, const heater_t);
|
||||
void setTargetTemp_celsius(const_float_t, const extruder_t);
|
||||
void setTargetFan_percent(const_float_t, const fan_t);
|
||||
void coolDown();
|
||||
void setAxisPosition_mm(const_float_t , const axis_t, const feedRate_t=0);
|
||||
void setAxisPosition_mm(const_float_t , const extruder_t, const feedRate_t=0);
|
||||
void setAxisSteps_per_mm(const_float_t , const axis_t);
|
||||
void setAxisSteps_per_mm(const_float_t , const extruder_t);
|
||||
void setAxisPosition_mm(const_float_t, const axis_t, const feedRate_t=0);
|
||||
void setAxisPosition_mm(const_float_t, const extruder_t, const feedRate_t=0);
|
||||
void setAxisSteps_per_mm(const_float_t, const axis_t);
|
||||
void setAxisSteps_per_mm(const_float_t, const extruder_t);
|
||||
void setAxisMaxFeedrate_mm_s(const feedRate_t, const axis_t);
|
||||
void setAxisMaxFeedrate_mm_s(const feedRate_t, const extruder_t);
|
||||
void setAxisMaxAcceleration_mm_s2(const_float_t , const axis_t);
|
||||
void setAxisMaxAcceleration_mm_s2(const_float_t , const extruder_t);
|
||||
void setAxisMaxAcceleration_mm_s2(const_float_t, const axis_t);
|
||||
void setAxisMaxAcceleration_mm_s2(const_float_t, const extruder_t);
|
||||
void setFeedrate_mm_s(const feedRate_t);
|
||||
void setMinFeedrate_mm_s(const feedRate_t);
|
||||
void setMinTravelFeedrate_mm_s(const feedRate_t);
|
||||
@ -220,7 +220,7 @@ namespace ExtUI {
|
||||
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
float getLinearAdvance_mm_mm_s(const extruder_t);
|
||||
void setLinearAdvance_mm_mm_s(const_float_t , const extruder_t);
|
||||
void setLinearAdvance_mm_mm_s(const_float_t, const extruder_t);
|
||||
#endif
|
||||
|
||||
#if HAS_JUNCTION_DEVIATION
|
||||
@ -229,8 +229,8 @@ namespace ExtUI {
|
||||
#else
|
||||
float getAxisMaxJerk_mm_s(const axis_t);
|
||||
float getAxisMaxJerk_mm_s(const extruder_t);
|
||||
void setAxisMaxJerk_mm_s(const_float_t , const axis_t);
|
||||
void setAxisMaxJerk_mm_s(const_float_t , const extruder_t);
|
||||
void setAxisMaxJerk_mm_s(const_float_t, const axis_t);
|
||||
void setAxisMaxJerk_mm_s(const_float_t, const extruder_t);
|
||||
#endif
|
||||
|
||||
extruder_t getTool(const uint8_t extruder);
|
||||
@ -246,7 +246,7 @@ namespace ExtUI {
|
||||
|
||||
#if HAS_HOTEND_OFFSET
|
||||
float getNozzleOffset_mm(const axis_t, const extruder_t);
|
||||
void setNozzleOffset_mm(const_float_t , const axis_t, const extruder_t);
|
||||
void setNozzleOffset_mm(const_float_t, const axis_t, const extruder_t);
|
||||
void normalizeNozzleOffset(const axis_t axis);
|
||||
#endif
|
||||
|
||||
@ -255,12 +255,12 @@ namespace ExtUI {
|
||||
|
||||
#if HAS_BED_PROBE
|
||||
float getProbeOffset_mm(const axis_t);
|
||||
void setProbeOffset_mm(const_float_t , const axis_t);
|
||||
void setProbeOffset_mm(const_float_t, const axis_t);
|
||||
#endif
|
||||
|
||||
#if ENABLED(BACKLASH_GCODE)
|
||||
float getAxisBacklash_mm(const axis_t);
|
||||
void setAxisBacklash_mm(const_float_t , const axis_t);
|
||||
void setAxisBacklash_mm(const_float_t, const axis_t);
|
||||
|
||||
float getBacklashCorrection_percent();
|
||||
void setBacklashCorrection_percent(const_float_t );
|
||||
@ -297,15 +297,15 @@ namespace ExtUI {
|
||||
float getPIDValues_Kp(const extruder_t);
|
||||
float getPIDValues_Ki(const extruder_t);
|
||||
float getPIDValues_Kd(const extruder_t);
|
||||
void setPIDValues(const_float_t , const_float_t , const_float_t , extruder_t);
|
||||
void startPIDTune(const_float_t , extruder_t);
|
||||
void setPIDValues(const_float_t, const_float_t , const_float_t , extruder_t);
|
||||
void startPIDTune(const_float_t, extruder_t);
|
||||
#endif
|
||||
|
||||
#if ENABLED(PIDTEMPBED)
|
||||
float getBedPIDValues_Kp();
|
||||
float getBedPIDValues_Ki();
|
||||
float getBedPIDValues_Kd();
|
||||
void setBedPIDValues(const_float_t , const_float_t , const_float_t );
|
||||
void setBedPIDValues(const_float_t, const_float_t , const_float_t );
|
||||
void startBedPIDTune(const_float_t );
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user