Skip to content

Commit 6156954

Browse files
committed
Update esp3dlib_config.h
Fix printer screen does not have update from ESP3DLib
1 parent 7cd8d0d commit 6156954

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/esp3dlib_config.h

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
#define MARLIN_PATH(PATH) ESP_XSTR(SRCHOME/PATH)
4141
#include MARLIN_PATH(inc/MarlinConfig.h)
4242

43+
#if defined(HAS_STATUS_MESSAGE)
44+
#define PRINTER_HAS_DISPLAY 1
45+
#endif // HAS_STATUS_MESSAGE
46+
4347
#undef DISABLED
4448
#undef _BV
4549
#undef SPI_FULL_SPEED
@@ -73,7 +77,7 @@
7377
#endif
7478

7579
#define SDSUPPORT
76-
// #define HAS_DISPLAY
80+
// #define PRINTER_HAS_DISPLAY
7781
// #define HAS_SERIAL_DISPLAY "M118 P1 "
7882
#define GLOBAL_FILESYSTEM_FEATURE
7983
// #define DISABLE_WDT_ESP3DLIB_TASK
@@ -295,10 +299,22 @@
295299
#endif // NOTIFICATION_TITLE
296300
#endif // NOTIFICATION_FEATURE
297301

298-
#if defined(SD_TIMESTAMP_FEATURE) || defined(FILESYSTEM_TIMESTAMP_FEATURE)
302+
/************************************
303+
*
304+
* Sanity checks
305+
* Do not modify
306+
************************************/
307+
308+
#if defined(ESP_GOT_DATE_TIME_HOOK) || defined(SD_TIMESTAMP_FEATURE) || \
309+
defined(FILESYSTEM_TIMESTAMP_FEATURE)
299310
#define TIMESTAMP_FEATURE
300311
#endif // SD_TIMESTAMP_FEATURE || FILESYSTEM_TIMESTAMP_FEATURE
301312

313+
#if defined(PRINTER_HAS_DISPLAY)
314+
#define HAS_SERIAL_DISPLAY ""
315+
#endif // PRINTER_HAS_DISPLAY
316+
317+
302318
/************************************
303319
*
304320
* Development settings

0 commit comments

Comments
 (0)