Fix compiler warnings:
sketch/Marlin_main.cpp:806:6: warning: unused variable 'cursor_pos' [-Wunused-variable] sketch/Marlin_main.cpp:1922:7: warning: unused variable 'stack_integrity' [-Wunused-variable] sketch/Marlin_main.cpp:4254:8: warning: unused variable 'clamped' [-Wunused-variable]
This commit is contained in:
parent
83081b0fba
commit
42893b7a94
|
|
@ -803,7 +803,6 @@ int er_progress = 0;
|
||||||
void factory_reset(char level, bool quiet)
|
void factory_reset(char level, bool quiet)
|
||||||
{
|
{
|
||||||
lcd_implementation_clear();
|
lcd_implementation_clear();
|
||||||
int cursor_pos = 0;
|
|
||||||
switch (level) {
|
switch (level) {
|
||||||
|
|
||||||
// Level 0: Language reset
|
// Level 0: Language reset
|
||||||
|
|
@ -1920,7 +1919,6 @@ void host_keepalive() {
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
KEEPALIVE_STATE(NOT_BUSY);
|
KEEPALIVE_STATE(NOT_BUSY);
|
||||||
bool stack_integrity = true;
|
|
||||||
|
|
||||||
if ((usb_printing_counter > 0) && ((millis()-_usb_timer) > 1000))
|
if ((usb_printing_counter > 0) && ((millis()-_usb_timer) > 1000))
|
||||||
{
|
{
|
||||||
|
|
@ -4254,10 +4252,11 @@ void process_commands()
|
||||||
// The move to the first calibration point.
|
// The move to the first calibration point.
|
||||||
current_position[X_AXIS] = pgm_read_float(bed_ref_points);
|
current_position[X_AXIS] = pgm_read_float(bed_ref_points);
|
||||||
current_position[Y_AXIS] = pgm_read_float(bed_ref_points + 1);
|
current_position[Y_AXIS] = pgm_read_float(bed_ref_points + 1);
|
||||||
bool clamped = world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]);
|
|
||||||
|
|
||||||
#ifdef SUPPORT_VERBOSITY
|
#ifdef SUPPORT_VERBOSITY
|
||||||
if (verbosity_level >= 1) {
|
if (verbosity_level >= 1)
|
||||||
|
{
|
||||||
|
bool clamped = world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]);
|
||||||
clamped ? SERIAL_PROTOCOLPGM("First calibration point clamped.\n") : SERIAL_PROTOCOLPGM("No clamping for first calibration point.\n");
|
clamped ? SERIAL_PROTOCOLPGM("First calibration point clamped.\n") : SERIAL_PROTOCOLPGM("No clamping for first calibration point.\n");
|
||||||
}
|
}
|
||||||
#endif //SUPPORT_VERBOSITY
|
#endif //SUPPORT_VERBOSITY
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue