Skip to content

Commit 0d3f79e

Browse files
authored
🩹 Wrap endstop_diag.cpp (MarlinFirmware#23931)
1 parent b44357d commit 0d3f79e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Marlin/src/lcd/e3v2/proui/endstop_diag.cpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@
2121
*/
2222

2323
/**
24-
* DWIN End Stops diagnostic page for PRO UI
24+
* DWIN Endstops diagnostic page for PRO UI
2525
* Author: Miguel A. Risco-Castillo (MRISCOC)
2626
* Version: 1.2.2
2727
* Date: 2022/02/24
2828
*/
2929

30+
#include "../../../inc/MarlinConfigPre.h"
31+
32+
#if ENABLED(DWIN_LCD_PROUI)
33+
3034
#include "dwin_defines.h"
3135

32-
#if BOTH(DWIN_LCD_PROUI, HAS_ESDIAG)
36+
#if HAS_ESDIAG
3337

3438
#include "endstop_diag.h"
3539

@@ -105,4 +109,5 @@ void ESDiagClass::Update() {
105109
DWIN_UpdateLCD();
106110
}
107111

108-
#endif // DWIN_LCD_PROUI && HAS_ESDIAG
112+
#endif // HAS_ESDIAG
113+
#endif // DWIN_LCD_PROUI

0 commit comments

Comments
 (0)