Skip to content

Commit

Permalink
Fixing convert from UTF-8 to Unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
cwl769 committed Aug 19, 2024
1 parent 8ff7a77 commit 079c79d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/canvas/font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ lcduint_t NanoFont::getTextSize(const char *text, lcduint_t *height)
uint16_t NanoFont::unicode16FromUtf8(uint8_t ch)
{
#ifdef CONFIG_SSD1306_UNICODE_ENABLE
static uint16_t unicode = 0;
static uint8_t rest = 0;
if(ch & 0x80)
{
static uint16_t unicode = 0;
static uint8_t rest = 0;
if(ch & 0x40)
{
uint8_t mask = 0x1f;
Expand Down

0 comments on commit 079c79d

Please sign in to comment.