🎨 Fewer serial macros
This commit is contained in:
committed by
Scott Lahteine
parent
6d96c221bd
commit
b661795ae5
@ -79,7 +79,7 @@ void FileNavigator::getFiles(uint16_t index) {
|
||||
lastindex = index;
|
||||
|
||||
#if NEXDEBUG(AC_FILE)
|
||||
DEBUG_ECHOLNPAIR("index=", index, " currentindex=", currentindex);
|
||||
DEBUG_ECHOLNPGM("index=", index, " currentindex=", currentindex);
|
||||
#endif
|
||||
|
||||
if (currentindex == 0 && folderdepth > 0) { // Add a link to go up a folder
|
||||
@ -127,7 +127,7 @@ void FileNavigator::getFiles(uint16_t index) {
|
||||
fcnt++;
|
||||
fseek = seek;
|
||||
#if NEXDEBUG(AC_FILE)
|
||||
DEBUG_ECHOLNPAIR("-", seek, " '", filelist.longFilename(), "' '", currentfoldername, "", filelist.shortFilename(), "'\n");
|
||||
DEBUG_ECHOLNPGM("-", seek, " '", filelist.longFilename(), "' '", currentfoldername, "", filelist.shortFilename(), "'\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -137,7 +137,7 @@ void FileNavigator::getFiles(uint16_t index) {
|
||||
|
||||
void FileNavigator::changeDIR(char *folder) {
|
||||
#if NEXDEBUG(AC_FILE)
|
||||
DEBUG_ECHOLNPAIR("currentfolder: ", currentfoldername, " New: ", folder);
|
||||
DEBUG_ECHOLNPGM("currentfolder: ", currentfoldername, " New: ", folder);
|
||||
#endif
|
||||
if (folderdepth >= MAX_FOLDER_DEPTH) return; // limit the folder depth
|
||||
strcat(currentfoldername, folder);
|
||||
@ -165,7 +165,7 @@ void FileNavigator::upDIR() {
|
||||
pos[1] = '\0';
|
||||
}
|
||||
#if NEXDEBUG(AC_FILE)
|
||||
DEBUG_ECHOLNPAIR("depth: ", folderdepth, " currentfoldername: ", currentfoldername);
|
||||
DEBUG_ECHOLNPGM("depth: ", folderdepth, " currentfoldername: ", currentfoldername);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ void NextionTFT::Startup() {
|
||||
SEND_VALasTXT("tmppage.bedy", Y_BED_SIZE);
|
||||
SEND_VALasTXT("tmppage.bedz", Z_MAX_POS);
|
||||
|
||||
DEBUG_ECHOLNPAIR("Nextion Debug Level ", NEXDEBUGLEVEL);
|
||||
DEBUG_ECHOLNPGM("Nextion Debug Level ", NEXDEBUGLEVEL);
|
||||
}
|
||||
|
||||
void NextionTFT::IdleLoop() {
|
||||
@ -98,13 +98,13 @@ void NextionTFT::PrintFinished() {
|
||||
void NextionTFT::ConfirmationRequest(const char * const msg) {
|
||||
SEND_VALasTXT("tmppage.M117", msg);
|
||||
#if NEXDEBUG(N_MARLIN)
|
||||
DEBUG_ECHOLNPAIR("ConfirmationRequest() ", msg, " printer_state:", printer_state);
|
||||
DEBUG_ECHOLNPGM("ConfirmationRequest() ", msg, " printer_state:", printer_state);
|
||||
#endif
|
||||
}
|
||||
|
||||
void NextionTFT::StatusChange(const char * const msg) {
|
||||
#if NEXDEBUG(N_MARLIN)
|
||||
DEBUG_ECHOLNPAIR("StatusChange() ", msg, "\nprinter_state:", printer_state);
|
||||
DEBUG_ECHOLNPGM("StatusChange() ", msg, "\nprinter_state:", printer_state);
|
||||
#endif
|
||||
SEND_VALasTXT("tmppage.M117", msg);
|
||||
}
|
||||
@ -133,12 +133,12 @@ bool NextionTFT::ReadTFTCommand() {
|
||||
if (nextion_command[0] == 'G' || nextion_command[0] == 'M' || nextion_command[0] == 'T')
|
||||
injectCommands(nextion_command);
|
||||
#if NEXDEBUG(N_ALL)
|
||||
DEBUG_ECHOLNPAIR("< ", nextion_command);
|
||||
DEBUG_ECHOLNPGM("< ", nextion_command);
|
||||
#endif
|
||||
#if NEXDEBUG(N_SOME)
|
||||
uint8_t req = atoi(&nextion_command[1]);
|
||||
if (req > 7 && req != 20)
|
||||
DEBUG_ECHOLNPAIR( "> ", AS_CHAR(nextion_command[0]),
|
||||
DEBUG_ECHOLNPGM( "> ", AS_CHAR(nextion_command[0]),
|
||||
"\n> ", AS_CHAR(nextion_command[1]),
|
||||
"\n> ", AS_CHAR(nextion_command[2]),
|
||||
"\n> ", AS_CHAR(nextion_command[3]),
|
||||
@ -151,7 +151,7 @@ bool NextionTFT::ReadTFTCommand() {
|
||||
void NextionTFT::SendFileList(int8_t startindex) {
|
||||
// respond to panel request for 7 files starting at index
|
||||
#if NEXDEBUG(N_INFO)
|
||||
DEBUG_ECHOLNPAIR("## SendFileList ## ", startindex);
|
||||
DEBUG_ECHOLNPGM("## SendFileList ## ", startindex);
|
||||
#endif
|
||||
filenavigator.getFiles(startindex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user