Browse Source

🐛 ExtUI F() followups

Followup to 12b5d997a2
vanilla_fb_2.0.x
Scott Lahteine 3 years ago
committed by Scott Lahteine
parent
commit
d9f7de7a24
  1. 4
      Marlin/src/lcd/extui/anycubic_chiron/chiron_tft.cpp
  2. 4
      Marlin/src/lcd/extui/anycubic_chiron/chiron_tft.h
  3. 2
      Marlin/src/lcd/extui/nextion/nextion_tft.cpp
  4. 5
      Marlin/src/lcd/extui/nextion/nextion_tft.h

4
Marlin/src/lcd/extui/anycubic_chiron/chiron_tft.cpp

@ -315,7 +315,7 @@ void ChironTFT::PrintComplete() {
setSoftEndstopState(true); // enable endstops setSoftEndstopState(true); // enable endstops
} }
void ChironTFT::SendtoTFT(FSTR_P const fstr) { // A helper to print PROGMEM string to the panel void ChironTFT::SendtoTFT(FSTR_P const fstr/*=nullptr*/) { // A helper to print PROGMEM string to the panel
#if ACDEBUG(AC_SOME) #if ACDEBUG(AC_SOME)
SERIAL_ECHOF(fstr); SERIAL_ECHOF(fstr);
#endif #endif
@ -323,7 +323,7 @@ void ChironTFT::SendtoTFT(FSTR_P const fstr) { // A helper to print PROGMEM str
while (const char c = pgm_read_byte(str++)) TFTSer.write(c); while (const char c = pgm_read_byte(str++)) TFTSer.write(c);
} }
void ChironTFT::SendtoTFTLN(FSTR_P const fstr) { void ChironTFT::SendtoTFTLN(FSTR_P const fstr/*=nullptr*/) {
if (fstr) { if (fstr) {
#if ACDEBUG(AC_SOME) #if ACDEBUG(AC_SOME)
SERIAL_ECHOPGM("> "); SERIAL_ECHOPGM("> ");

4
Marlin/src/lcd/extui/anycubic_chiron/chiron_tft.h

@ -67,8 +67,8 @@ class ChironTFT {
static void StatusChange(const char * const); static void StatusChange(const char * const);
static void PowerLossRecovery(); static void PowerLossRecovery();
static void PrintComplete(); static void PrintComplete();
static void SendtoTFT(FSTR_P const); static void SendtoTFT(FSTR_P const=nullptr);
static void SendtoTFTLN(FSTR_P const); static void SendtoTFTLN(FSTR_P const=nullptr);
private: private:
static void DetectPanelType(); static void DetectPanelType();
static bool ReadTFTCommand(); static bool ReadTFTCommand();

2
Marlin/src/lcd/extui/nextion/nextion_tft.cpp

@ -110,7 +110,7 @@ void NextionTFT::StatusChange(const char * const msg) {
SEND_VALasTXT("tmppage.M117", msg); SEND_VALasTXT("tmppage.M117", msg);
} }
void NextionTFT::SendtoTFT(FSTR_P fstr) { // A helper to print PROGMEM string to the panel void NextionTFT::SendtoTFT(FSTR_P const fstr/*=nullptr*/) { // A helper to print PROGMEM string to the panel
#if NEXDEBUG(N_SOME) #if NEXDEBUG(N_SOME)
DEBUG_ECHOF(fstr); DEBUG_ECHOF(fstr);
#endif #endif

5
Marlin/src/lcd/extui/nextion/nextion_tft.h

@ -42,10 +42,11 @@ class NextionTFT {
NextionTFT(); NextionTFT();
static void Startup(); static void Startup();
static void IdleLoop(); static void IdleLoop();
static void PrinterKilled(PGM_P, PGM_P); static void PrinterKilled(FSTR_P const, FSTR_P const);
static void ConfirmationRequest(const char * const); static void ConfirmationRequest(const char * const);
static void StatusChange(const char * const); static void StatusChange(const char * const);
static void SendtoTFT(FSTR_P const); static void SendtoTFT(FSTR_P const=nullptr);
//static void SendtoTFTLN(FSTR_P const=nullptr);
static void UpdateOnChange(); static void UpdateOnChange();
static void PrintFinished(); static void PrintFinished();
static void PanelInfo(uint8_t); static void PanelInfo(uint8_t);

Loading…
Cancel
Save