From c8c7563e8a1366330c80c0da5d70dcf87e6959ad Mon Sep 17 00:00:00 2001 From: MartinPoupa <58166333+MartinPoupa@users.noreply.github.com> Date: Wed, 7 Oct 2020 17:44:17 +0200 Subject: [PATCH 1/3] LCD status changed When the lcd status changed it will be printed "LCD status changed" to serial line. --- Firmware/ultralcd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 936ae873..a9d3da59 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -8968,6 +8968,7 @@ void lcd_ignore_click(bool b) } void lcd_finishstatus() { + SERIAL_PROTOCOLLN("LCD status changed"); int len = strlen(lcd_status_message); if (len > 0) { while (len < LCD_WIDTH) { From a84d7ef8d6e7bf37ec6290e92b23cf823bcd1fa8 Mon Sep 17 00:00:00 2001 From: MartinPoupa <58166333+MartinPoupa@users.noreply.github.com> Date: Wed, 7 Oct 2020 18:41:49 +0200 Subject: [PATCH 2/3] corectino of declaration --- Firmware/messages.c | 2 +- Firmware/messages.h | 1 + Firmware/ultralcd.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Firmware/messages.c b/Firmware/messages.c index be613cab..1c442b47 100644 --- a/Firmware/messages.c +++ b/Firmware/messages.c @@ -176,4 +176,4 @@ const char MSG_FANCHECK_PRINT[] PROGMEM_N1 = "Err: PRINT FAN ERROR"; ////c=20 const char MSG_M112_KILL[] PROGMEM_N1 = "M112 called. Emergency Stop."; ////c=20 const char MSG_ADVANCE_K[] PROGMEM_N1 = "Advance K:"; ////c=13 const char MSG_POWERPANIC_DETECTED[] PROGMEM_N1 = "POWER PANIC DETECTED"; ////c=20 - +const char MSG_LCD_STATUS_CHANGED[] PROGMEM_N1 = "LCD status changed"; diff --git a/Firmware/messages.h b/Firmware/messages.h index 4653c869..a9a23f0d 100644 --- a/Firmware/messages.h +++ b/Firmware/messages.h @@ -176,6 +176,7 @@ extern const char MSG_FANCHECK_PRINT[]; extern const char MSG_M112_KILL[]; extern const char MSG_ADVANCE_K[]; extern const char MSG_POWERPANIC_DETECTED[]; +extern const char MSG_LCD_STATUS_CHANGED[]; #if defined(__cplusplus) } diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index a9d3da59..63fea0e3 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -8968,7 +8968,7 @@ void lcd_ignore_click(bool b) } void lcd_finishstatus() { - SERIAL_PROTOCOLLN("LCD status changed"); + SERIAL_PROTOCOLLNRPGM(MSG_LCD_STATUS_CHANGED); int len = strlen(lcd_status_message); if (len > 0) { while (len < LCD_WIDTH) { From c05d4c9112c3b4ef8b086ef4fb18fda983a66599 Mon Sep 17 00:00:00 2001 From: DRracer Date: Wed, 21 Oct 2020 17:04:20 +0200 Subject: [PATCH 3/3] Update messages.h cleanup space --- Firmware/messages.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/messages.h b/Firmware/messages.h index a9a23f0d..cb801022 100644 --- a/Firmware/messages.h +++ b/Firmware/messages.h @@ -176,7 +176,7 @@ extern const char MSG_FANCHECK_PRINT[]; extern const char MSG_M112_KILL[]; extern const char MSG_ADVANCE_K[]; extern const char MSG_POWERPANIC_DETECTED[]; -extern const char MSG_LCD_STATUS_CHANGED[]; +extern const char MSG_LCD_STATUS_CHANGED[]; #if defined(__cplusplus) }