made it survive idiots cat'ing image files etc
This commit is contained in:
+7
-3
@@ -213,8 +213,12 @@ apars_handle_plainchar(char c)
|
||||
|
||||
return;
|
||||
fail:
|
||||
hdump_bad((const char *) bytes, utf_j);
|
||||
ansi_warn("BAD UTF8!");
|
||||
apars_show_context();
|
||||
if (termconf_live.ascii_debug) {
|
||||
hdump_bad((const char *) bytes, utf_j);
|
||||
} else {
|
||||
screen_putchar("\xEF\xBF\xBD");
|
||||
}
|
||||
//ansi_warn("BAD UTF8!");
|
||||
//apars_show_context();
|
||||
apars_reset_utf8buffer();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user