From 1c89c0470f2778f8051ff8514831138e64a2d9ed Mon Sep 17 00:00:00 2001 From: ellensp <530024+ellensp@users.noreply.github.com> Date: Fri, 25 Mar 2022 12:06:28 +1300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Wrap=20endstop=5Fdiag.cpp=20(#23?= =?UTF-8?q?931)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/lcd/e3v2/proui/endstop_diag.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Marlin/src/lcd/e3v2/proui/endstop_diag.cpp b/Marlin/src/lcd/e3v2/proui/endstop_diag.cpp index 74eb94e751..0b450bd4c0 100644 --- a/Marlin/src/lcd/e3v2/proui/endstop_diag.cpp +++ b/Marlin/src/lcd/e3v2/proui/endstop_diag.cpp @@ -21,15 +21,19 @@ */ /** - * DWIN End Stops diagnostic page for PRO UI + * DWIN Endstops diagnostic page for PRO UI * Author: Miguel A. Risco-Castillo (MRISCOC) * Version: 1.2.2 * Date: 2022/02/24 */ +#include "../../../inc/MarlinConfigPre.h" + +#if ENABLED(DWIN_LCD_PROUI) + #include "dwin_defines.h" -#if BOTH(DWIN_LCD_PROUI, HAS_ESDIAG) +#if HAS_ESDIAG #include "endstop_diag.h" @@ -105,4 +109,5 @@ void ESDiagClass::Update() { DWIN_UpdateLCD(); } -#endif // DWIN_LCD_PROUI && HAS_ESDIAG +#endif // HAS_ESDIAG +#endif // DWIN_LCD_PROUI