made it survive idiots cat'ing image files etc

http-comm
Ondřej Hruška 7 years ago
parent faffa68794
commit 9321cd4ebb
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 8
      user/apars_utf8.c
  2. 1
      user/serial.c

@ -213,8 +213,12 @@ apars_handle_plainchar(char c)
return; return;
fail: fail:
if (termconf_live.ascii_debug) {
hdump_bad((const char *) bytes, utf_j); hdump_bad((const char *) bytes, utf_j);
ansi_warn("BAD UTF8!"); } else {
apars_show_context(); screen_putchar("\xEF\xBF\xBD");
}
//ansi_warn("BAD UTF8!");
//apars_show_context();
apars_reset_utf8buffer(); apars_reset_utf8buffer();
} }

@ -92,4 +92,5 @@ void ICACHE_FLASH_ATTR serialInit(void)
void ICACHE_FLASH_ATTR UART_HandleRxByte(char c) void ICACHE_FLASH_ATTR UART_HandleRxByte(char c)
{ {
ansi_parser(c); ansi_parser(c);
system_soft_wdt_feed(); // so we survive long torrents
} }

Loading…
Cancel
Save