mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
🐛 Fix FTDI Eve unicode and spinner dialog (#22468)
This commit is contained in:
parent
5ecef6e584
commit
39e5c86544
@ -68,7 +68,7 @@
|
||||
|
||||
utf8_char_t FTDI::get_utf8_char_and_inc(const char *&c) {
|
||||
utf8_char_t val = *(uint8_t*)c++;
|
||||
if ((val & 0xC0) == 0x80)
|
||||
if ((val & 0xC0) == 0xC0)
|
||||
while ((*c & 0xC0) == 0x80)
|
||||
val = (val << 8) | *(uint8_t*)c++;
|
||||
return val;
|
||||
@ -76,7 +76,7 @@
|
||||
|
||||
utf8_char_t FTDI::get_utf8_char_and_inc(char *&c) {
|
||||
utf8_char_t val = *(uint8_t*)c++;
|
||||
if ((val & 0xC0) == 0x80)
|
||||
if ((val & 0xC0) == 0xC0)
|
||||
while ((*c & 0xC0) == 0x80)
|
||||
val = (val << 8) | *(uint8_t*)c++;
|
||||
return val;
|
||||
|
@ -49,6 +49,7 @@ void SpinnerDialogBox::show(progmem_str message) {
|
||||
void SpinnerDialogBox::hide() {
|
||||
CommandProcessor cmd;
|
||||
cmd.stop().execute();
|
||||
GOTO_PREVIOUS();
|
||||
}
|
||||
|
||||
void SpinnerDialogBox::enqueueAndWait(progmem_str message, progmem_str commands) {
|
||||
@ -66,7 +67,6 @@ void SpinnerDialogBox::onIdle() {
|
||||
if (mydata.auto_hide && !commandsInQueue()) {
|
||||
mydata.auto_hide = false;
|
||||
hide();
|
||||
GOTO_PREVIOUS();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user