made it survive idiots cat'ing image files etc

This commit is contained in:
2017-10-01 03:35:31 +02:00
parent faffa68794
commit 9321cd4ebb
2 changed files with 8 additions and 3 deletions
+6 -2
View File
@@ -213,8 +213,12 @@ apars_handle_plainchar(char c)
return;
fail:
if (termconf_live.ascii_debug) {
hdump_bad((const char *) bytes, utf_j);
ansi_warn("BAD UTF8!");
apars_show_context();
} else {
screen_putchar("\xEF\xBF\xBD");
}
//ansi_warn("BAD UTF8!");
//apars_show_context();
apars_reset_utf8buffer();
}
+1
View File
@@ -92,4 +92,5 @@ void ICACHE_FLASH_ATTR serialInit(void)
void ICACHE_FLASH_ATTR UART_HandleRxByte(char c)
{
ansi_parser(c);
system_soft_wdt_feed(); // so we survive long torrents
}