misc. cleanup
This commit is contained in:
@ -310,7 +310,7 @@ namespace Anycubic {
|
||||
|
||||
bool ChironTFT::ReadTFTCommand() {
|
||||
bool command_ready = false;
|
||||
while(TFTSer.available() > 0 && command_len < MAX_CMND_LEN) {
|
||||
while (TFTSer.available() > 0 && command_len < MAX_CMND_LEN) {
|
||||
panel_command[command_len] = TFTSer.read();
|
||||
if (panel_command[command_len] == '\n') {
|
||||
command_ready = true;
|
||||
@ -338,7 +338,7 @@ namespace Anycubic {
|
||||
|
||||
int8_t ChironTFT::Findcmndpos(const char * buff, char q) {
|
||||
int8_t pos = 0;
|
||||
do { if (buff[pos] == q) return pos; } while(++pos < MAX_CMND_LEN);
|
||||
do { if (buff[pos] == q) return pos; } while (++pos < MAX_CMND_LEN);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -264,7 +264,7 @@ void DGUSScreenHandler::DGUSLCD_SendTMCStepValue(DGUS_VP_Variable &var) {
|
||||
|
||||
void DGUSScreenHandler::SDPrintingFinished() {
|
||||
if (DGUSAutoTurnOff) {
|
||||
while(!queue.ring_buffer.empty()) queue.advance();
|
||||
while (!queue.ring_buffer.empty()) queue.advance();
|
||||
gcode.process_subcommands_now_P(PSTR("M81"));
|
||||
}
|
||||
GotoScreen(MKSLCD_SCREEN_PrintDone);
|
||||
|
@ -66,8 +66,10 @@ uint8_t sel_id = 0;
|
||||
//root2.rewind();
|
||||
//SERIAL_ECHOLN(list_file.curDirPath);
|
||||
|
||||
if (curDirLever != 0) card.cd(list_file.curDirPath);
|
||||
else card.cdroot(); // while(card.cdup());
|
||||
if (curDirLever != 0)
|
||||
card.cd(list_file.curDirPath);
|
||||
else
|
||||
card.cdroot();
|
||||
|
||||
const uint16_t fileCnt = card.get_num_Files();
|
||||
|
||||
|
@ -476,7 +476,7 @@ void ubl_map_screen() {
|
||||
if (position_is_reachable(xy)) break; // Found a valid point
|
||||
ui.encoderPosition += step_dir; // Test the next point
|
||||
#endif
|
||||
} while(ENABLED(IS_KINEMATIC));
|
||||
} while (ENABLED(IS_KINEMATIC));
|
||||
|
||||
// Determine number of points to edit
|
||||
#if IS_KINEMATIC
|
||||
|
Reference in New Issue
Block a user