Przeglądaj źródła

🐛 Fix FTDI Eve unicode and spinner dialog (#22468)

Marcio T 3 lat temu
rodzic
commit
39e5c86544
No account linked to committer's email address

+ 2
- 2
Marlin/src/lcd/extui/ftdi_eve_touch_ui/ftdi_eve_lib/extended/unicode/unicode.cpp Wyświetl plik

@@ -68,7 +68,7 @@
68 68
 
69 69
   utf8_char_t FTDI::get_utf8_char_and_inc(const char *&c) {
70 70
     utf8_char_t val = *(uint8_t*)c++;
71
-    if ((val & 0xC0) == 0x80)
71
+    if ((val & 0xC0) == 0xC0)
72 72
       while ((*c & 0xC0) == 0x80)
73 73
         val = (val << 8) | *(uint8_t*)c++;
74 74
     return val;
@@ -76,7 +76,7 @@
76 76
 
77 77
   utf8_char_t FTDI::get_utf8_char_and_inc(char *&c) {
78 78
     utf8_char_t val = *(uint8_t*)c++;
79
-    if ((val & 0xC0) == 0x80)
79
+    if ((val & 0xC0) == 0xC0)
80 80
       while ((*c & 0xC0) == 0x80)
81 81
         val = (val << 8) | *(uint8_t*)c++;
82 82
     return val;

+ 1
- 1
Marlin/src/lcd/extui/ftdi_eve_touch_ui/generic/spinner_dialog_box.cpp Wyświetl plik

@@ -49,6 +49,7 @@ void SpinnerDialogBox::show(progmem_str message) {
49 49
 void SpinnerDialogBox::hide() {
50 50
   CommandProcessor cmd;
51 51
   cmd.stop().execute();
52
+  GOTO_PREVIOUS();
52 53
 }
53 54
 
54 55
 void SpinnerDialogBox::enqueueAndWait(progmem_str message, progmem_str commands) {
@@ -66,7 +67,6 @@ void SpinnerDialogBox::onIdle() {
66 67
   if (mydata.auto_hide && !commandsInQueue()) {
67 68
     mydata.auto_hide = false;
68 69
     hide();
69
-    GOTO_PREVIOUS();
70 70
   }
71 71
 }
72 72
 

Ładowanie…
Anuluj
Zapisz