From fd62c42faa15998d6771a18a5f704e24f7bfa1f8 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <thinkyhead@users.noreply.github.com>
Date: Mon, 23 Oct 2023 17:07:04 -0500
Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20No=20GET=5FTEXT=20with=20DGUS=5F?=
 =?UTF-8?q?TFT?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Followup to #26164
---
 .../src/lcd/extui/anycubic_vyper/dgus_tft.cpp  | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp b/Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp
index 1aaa3787080..b1889281af5 100644
--- a/Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp
+++ b/Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp
@@ -293,9 +293,9 @@ namespace Anycubic {
       DEBUG_ECHOLNPGM("printerKilled()\nerror: ", error, "\ncomponent: ", component);
     #endif
 
-    if (strcmp_P(error, GET_TEXT(MSG_ERR_HEATING_FAILED)) == 0) {
+    if (strcmp_P(error, Language_en::MSG_ERR_HEATING_FAILED) == 0) {
 
-      if (strcmp_P(component, PSTR("Bed")) == 0) {
+      if (strcmp_P(component, Language_en::MSG_BED) == 0) {
         changePageOfTFT(PAGE_CHS_ABNORMAL_BED_HEATER);
         SERIAL_ECHOLNPGM("Check Bed heater");
       }
@@ -305,9 +305,9 @@ namespace Anycubic {
       }
 
     }
-    else if (strcmp_P(error, GET_TEXT(MSG_ERR_MINTEMP)) == 0) {
+    else if (strcmp_P(error, Language_en::MSG_ERR_MINTEMP) == 0) {
 
-      if (strcmp_P(component, PSTR("Bed")) == 0) {
+      if (strcmp_P(component, Language_en::MSG_BED) == 0) {
         changePageOfTFT(PAGE_CHS_ABNORMAL_BED_NTC);
         SERIAL_ECHOLNPGM("Check Bed thermistor");
       }
@@ -317,9 +317,9 @@ namespace Anycubic {
       }
 
     }
-    else if (strcmp_P(error, GET_TEXT(MSG_ERR_MAXTEMP)) == 0) {
+    else if (strcmp_P(error, Language_en::MSG_ERR_MAXTEMP) == 0) {
 
-      if (strcmp_P(component, PSTR("Bed")) == 0) {
+      if (strcmp_P(component, Language_en::MSG_BED) == 0) {
         changePageOfTFT(PAGE_CHS_ABNORMAL_BED_NTC);
         SERIAL_ECHOLNPGM("Check Bed thermistor");
       }
@@ -329,9 +329,9 @@ namespace Anycubic {
       }
 
     }
-    else if (strcmp_P(error, GET_TEXT(MSG_ERR_THERMAL_RUNAWAY)) == 0) {
+    else if (strcmp_P(error, Language_en::MSG_ERR_THERMAL_RUNAWAY) == 0) {
 
-      if (strcmp_P(component, PSTR("Bed")) == 0) {
+      if (strcmp_P(component, Language_en::MSG_BED) == 0) {
         changePageOfTFT(PAGE_CHS_ABNORMAL_BED_HEATER);
         SERIAL_ECHOLNPGM("Check Bed thermal runaway");
       }
@@ -341,7 +341,7 @@ namespace Anycubic {
       }
 
     }
-    else if (strcmp_P(error, GET_TEXT(MSG_KILL_HOMING_FAILED)) == 0) {
+    else if (strcmp_P(error, Language_en::MSG_KILL_HOMING_FAILED) == 0) {
 
       if (strcmp_P(component, PSTR("X")) == 0) {
         changePageOfTFT(PAGE_CHS_ABNORMAL_X_ENDSTOP);