Sfoglia il codice sorgente

[update] lib/utils/pyexec.c

SummerGift 6 anni fa
parent
commit
440d191afe
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      lib/utils/pyexec.c

+ 2 - 1
lib/utils/pyexec.c

@@ -482,7 +482,8 @@ friendly_repl_reset:
         } else if (ret == CHAR_CTRL_D) {
             // exit for a soft reset
             mp_hal_stdout_tx_str("\r\n");
-            vstr_clear(&line);
+            // TODO it will occur assert on RT-Thread platform, so comment it
+            // vstr_clear(&line);
             return PYEXEC_FORCED_EXIT;
         } else if (ret == CHAR_CTRL_E) {
             // paste mode