Quick fix of missing dots

replace/e98f749ed0d5936de72edc3ffd12e05934a36e8f
Niccolò Izzo 2020-11-19 22:18:36 +01:00
rodzic 56dfb38c2a
commit a6c9bf6dd8
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -22,6 +22,7 @@
* It is suitable for color displays, it will have grayscale and B/W counterparts
*/
#include <os.h>
#include <string.h>
#include <stdio.h>
#include <hwconfig.h>
@ -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];