Skip to content
Snippets Groups Projects
Commit 1da2c4f1 authored by Eduardo José Tagle's avatar Eduardo José Tagle Committed by Roxy-3D
Browse files

Text LCD display routine fix. Coauthored with @MagoKimbra (#10864)

parent 498a3281
No related branches found
No related tags found
No related merge requests found
...@@ -1026,7 +1026,7 @@ static int lcd_put_u8str_max_cb(const char * utf8_str, uint8_t (*cb_read_byte)(u ...@@ -1026,7 +1026,7 @@ static int lcd_put_u8str_max_cb(const char * utf8_str, uint8_t (*cb_read_byte)(u
while (ret < max_length) { while (ret < max_length) {
wchar_t ch = 0; wchar_t ch = 0;
p = get_utf8_value_cb(p, cb_read_byte, &ch); p = get_utf8_value_cb(p, cb_read_byte, &ch);
if (!p) break; if (!ch) break;
ret += lcd_put_wchar_max(ch, max_length - ret); ret += lcd_put_wchar_max(ch, max_length - ret);
} }
return (int)ret; return (int)ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment