From a6c9bf6dd843e323da8411a855ab08e83a49038a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Izzo?= Date: Thu, 19 Nov 2020 22:18:36 +0100 Subject: [PATCH] Quick fix of missing dots --- openrtx/src/graphics/graphics_rgb565.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openrtx/src/graphics/graphics_rgb565.c b/openrtx/src/graphics/graphics_rgb565.c index 55e063b4..bffb1a45 100644 --- a/openrtx/src/graphics/graphics_rgb565.c +++ b/openrtx/src/graphics/graphics_rgb565.c @@ -22,6 +22,7 @@ * It is suitable for color displays, it will have grayscale and B/W counterparts */ +#include #include #include #include @@ -200,6 +201,11 @@ static inline uint16_t get_reset_x(textAlign_t alignment, uint16_t line_size) { void gfx_print(point_t start, const char *text, fontSize_t size, textAlign_t alignment, color_t color) { + OS_ERR os_err; + + // TODO: Without this delay dots are not printed + OSTimeDlyHMSM(0u, 0u, 0u, 1u, OS_OPT_TIME_HMSM_STRICT, &os_err); + rgb565_t color_565 = _true2highColor(color); GFXfont f = fonts[size];