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;
|
return;
|
||||||
fail:
|
fail:
|
||||||
hdump_bad((const char *) bytes, utf_j);
|
if (termconf_live.ascii_debug) {
|
||||||
ansi_warn("BAD UTF8!");
|
hdump_bad((const char *) bytes, utf_j);
|
||||||
apars_show_context();
|
} else {
|
||||||
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user