refactor: USB HAL conversion + USB lib update (#4207)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
Malte Langermann
2023-12-24 11:01:48 +10:00
committed by GitHub
co-authored by raphaelcoeffic Richard Li
parent a68ad817d7
commit c9334ebda3
164 changed files with 14757 additions and 23526 deletions
+6 -2
View File
@@ -306,6 +306,7 @@ void lcdDrawSizedText(coord_t x, coord_t y, const char * s, uint8_t len, LcdFlag
break;
}
else if (c >= 0x20) {
#if !defined(BOOT)
// UTF8 detection
c = map_utf8_char(s, len);
if (!c) break;
@@ -319,11 +320,14 @@ void lcdDrawSizedText(coord_t x, coord_t y, const char * s, uint8_t len, LcdFlag
lcdDrawPoint(x, y + 5 -1 , flags);
}
x += 2;
}
else {
} else {
lcdDrawChar(x, y, c, flags);
x = lcdNextPos;
}
#else
lcdDrawChar(x, y, c, flags);
x = lcdNextPos;
#endif
}
else if (c == 0x1F) { //X-coord prefix
setx = true;