Commit ee2e7912 authored by funshine's avatar funshine
Browse files

serial input now accept non-ascii chars

parent 5209c099
......@@ -616,15 +616,15 @@ void ICACHE_FLASH_ATTR readline(lua_Load *load){
load->line[load->line_position] = 0;
continue;
}
/* EOF(ctrl+d) */
else if (ch == 0x04)
{
if (load->line_position == 0)
// No input which makes lua interpreter close
donejob(load);
else
continue;
}
/* EOT(ctrl+d) */
// else if (ch == 0x04)
// {
// if (load->line_position == 0)
// // No input which makes lua interpreter close
// donejob(load);
// else
// continue;
// }
/* end of line */
if (ch == '\r' || ch == '\n')
......@@ -648,10 +648,11 @@ void ICACHE_FLASH_ATTR readline(lua_Load *load){
}
/* other control character or not an acsii character */
if (ch < 0x20 || ch >= 0x80)
{
continue;
}
// if (ch < 0x20 || ch >= 0x80)
// {
// continue;
// }
/* echo */
if(uart0_echo) uart_putc(ch);
......
......@@ -4,4 +4,5 @@
*.bin
*.bin_rep
!.gitignore
!blank.bin
!esp_init_data_default.bin
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment