cleanup some braces
This commit is contained in:
@@ -1000,7 +1000,6 @@ void AnycubicTouchscreenClass::FilamentRunout() {
|
|||||||
DoFilamentRunoutCheck();
|
DoFilamentRunoutCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void AnycubicTouchscreenClass::DoFilamentRunoutCheck() {
|
void AnycubicTouchscreenClass::DoFilamentRunoutCheck() {
|
||||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
// NOTE: getFilamentRunoutState() only returns the runout state if the job is
|
// NOTE: getFilamentRunoutState() only returns the runout state if the job is
|
||||||
@@ -1012,7 +1011,6 @@ void AnycubicTouchscreenClass::DoFilamentRunoutCheck() {
|
|||||||
// play tone to indicate filament is out
|
// play tone to indicate filament is out
|
||||||
injectCommands(F("\nM300 P200 S1567\nM300 P200 S1174\nM300 P200 "
|
injectCommands(F("\nM300 P200 S1567\nM300 P200 S1174\nM300 P200 "
|
||||||
"S1567\nM300 P200 S1174\nM300 P2000 S1567"));
|
"S1567\nM300 P200 S1174\nM300 P2000 S1567"));
|
||||||
|
|
||||||
// tell the user that the filament has run out and wait
|
// tell the user that the filament has run out and wait
|
||||||
SENDLINE_DBG_PGM("J23", "TFT Serial Debug: Blocking filament prompt... J23");
|
SENDLINE_DBG_PGM("J23", "TFT Serial Debug: Blocking filament prompt... J23");
|
||||||
} else {
|
} else {
|
||||||
@@ -1107,6 +1105,7 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() {
|
|||||||
case 4: // A4 GET FAN SPEED
|
case 4: // A4 GET FAN SPEED
|
||||||
SEND_PGM_VAL("A4V ", int(getActualFan_percent(FAN0)));
|
SEND_PGM_VAL("A4V ", int(getActualFan_percent(FAN0)));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5: // A5 GET CURRENT COORDINATE
|
case 5: // A5 GET CURRENT COORDINATE
|
||||||
SEND_PGM("A5V X: ");
|
SEND_PGM("A5V X: ");
|
||||||
LCD_SERIAL.print(current_position[X_AXIS]);
|
LCD_SERIAL.print(current_position[X_AXIS]);
|
||||||
@@ -1654,7 +1653,7 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#endif
|
#endif // if ENABLED(KNUTWURST_CHIRON)
|
||||||
|
|
||||||
#if ENABLED(KNUTWURST_4MAXP2)
|
#if ENABLED(KNUTWURST_4MAXP2)
|
||||||
|
|
||||||
@@ -1702,7 +1701,6 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() {
|
|||||||
break;
|
break;
|
||||||
#endif // #if ENABLED(KNUTWURST_4MAXP2)
|
#endif // #if ENABLED(KNUTWURST_4MAXP2)
|
||||||
|
|
||||||
|
|
||||||
case 32: // a32 clean leveling beep flag
|
case 32: // a32 clean leveling beep flag
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -1840,7 +1838,9 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() {
|
|||||||
} else {
|
} else {
|
||||||
Laser_printer_st.pic_vector = 0;
|
Laser_printer_st.pic_vector = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 37:
|
case 37:
|
||||||
if (CodeSeen('S')) {
|
if (CodeSeen('S')) {
|
||||||
int coorvalue;
|
int coorvalue;
|
||||||
@@ -1961,11 +1961,11 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
} // switch
|
||||||
}
|
}
|
||||||
TFTbufindw = (TFTbufindw + 1) % TFTBUFSIZE;
|
TFTbufindw = (TFTbufindw + 1) % TFTBUFSIZE;
|
||||||
TFTbuflen += 1;
|
TFTbuflen += 1;
|
||||||
}
|
} // if (!TFTcomment_mode)
|
||||||
serial3_count = 0; // clear buffer
|
serial3_count = 0; // clear buffer
|
||||||
} else {
|
} else {
|
||||||
if (serial3_char == ';') {
|
if (serial3_char == ';') {
|
||||||
@@ -1975,8 +1975,8 @@ void AnycubicTouchscreenClass::GetCommandFromTFT() {
|
|||||||
TFTcmdbuffer[TFTbufindw][serial3_count++] = serial3_char;
|
TFTcmdbuffer[TFTbufindw][serial3_count++] = serial3_char;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} // while
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLED(KNUTWURST_MEGA_P_LASER)
|
#if ENABLED(KNUTWURST_MEGA_P_LASER)
|
||||||
void prepare_laser_print() {
|
void prepare_laser_print() {
|
||||||
|
Reference in New Issue
Block a user