From 46425b83bc1e3d43d8a52425f5f243b2d5f5a0b8 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Fri, 22 Feb 2019 00:13:40 +0000 Subject: [PATCH] Fix bug in UTF-8 line buffer decoder --- TFT_eSPI.cpp | 2 +- library.json | 2 +- library.properties | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 86c8971..19af227 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -4011,7 +4011,7 @@ uint16_t TFT_eSPI::decodeUTF8(uint8_t c) *************************************************************************************x*/ uint16_t TFT_eSPI::decodeUTF8(uint8_t *buf, uint16_t *index, uint16_t remaining) { - byte c = buf[(*index)++]; + uint16_t c = buf[(*index)++]; //Serial.print("Byte from string = 0x"); Serial.println(c, HEX); #ifdef DECODE_UTF8 diff --git a/library.json b/library.json index 6381bb3..da5bb7c 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TFT_eSPI", - "version": "1.4.7", + "version": "1.4.8", "keywords": "tft, ePaper, display, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789", "description": "A TFT and ePaper SPI graphics library for ESP8266 and ESP32", "repository": diff --git a/library.properties b/library.properties index f4e7a65..a1b8621 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFT_eSPI -version=1.4.7 +version=1.4.8 author=Bodmer maintainer=Bodmer sentence=A fast TFT graphics library for ESP8266 and ESP32 processors for the Arduino IDE