mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-15 03:38:50 +01:00
tab to be two space in PRINT_STATE
This commit is contained in:
parent
52b2aaae11
commit
72eeb89451
@ -682,12 +682,16 @@ void loop() {
|
|||||||
{
|
{
|
||||||
fread(readbuf,1, 1,fp);
|
fread(readbuf,1, 1,fp);
|
||||||
//printf("read %x",readbuf[0]);
|
//printf("read %x",readbuf[0]);
|
||||||
if(readbuf[0] == ASCII_TAB) {
|
if(cfg->state == PRINT_STATE) {
|
||||||
readbuf[0] = ' ';
|
if(readbuf[0] == ASCII_TAB) {
|
||||||
parse_serial_stream(&g_config,readbuf[0]);
|
readbuf[0] = ' ';
|
||||||
parse_serial_stream(&g_config,readbuf[0]);
|
parse_serial_stream(&g_config,readbuf[0]);
|
||||||
}else{
|
parse_serial_stream(&g_config,readbuf[0]);
|
||||||
parse_serial_stream(&g_config,readbuf[0]);
|
} else {//not a tab
|
||||||
|
parse_serial_stream(&g_config,readbuf[0]);
|
||||||
|
}
|
||||||
|
} else { //cfg->state == PRINT_STATE
|
||||||
|
parse_serial_stream(&g_config,readbuf[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user