From 2a9f7030d88c3eff90f45a0672650c16bbec0474 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Mon, 23 Apr 2018 20:29:52 +0100 Subject: [PATCH] Fix #111 --- TFT_eSPI.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 44e4ea8..e17774f 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -31,6 +31,14 @@ #define SPI_TOUCH_FREQUENCY 2500000 #endif +// Use GLCD font in error case where user requests a smooth font file +// that does not exist (this is a temporary fix to stop ESP32 reboot) +#ifdef SMOOTH_FONT + #ifndef LOAD_GLCD + #define LOAD_GLCD + #endif +#endif + // Only load the fonts defined in User_Setup.h (to save space) // Set flag so RLE rendering code is optionally compiled #ifdef LOAD_GLCD