mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-21 14:48:50 +01:00
add CONFIG printf
This commit is contained in:
parent
c6e3c43116
commit
3186a3216f
@ -680,7 +680,7 @@ void loop() {
|
|||||||
fp = NULL;
|
fp = NULL;
|
||||||
fp = fopen(FIFO_FILE,"r+b");
|
fp = fopen(FIFO_FILE,"r+b");
|
||||||
if (fp != NULL) {
|
if (fp != NULL) {
|
||||||
|
g_config.fp = fp;
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
fread(readbuf,1, 1,fp);
|
fread(readbuf,1, 1,fp);
|
||||||
@ -688,6 +688,7 @@ void loop() {
|
|||||||
parse_serial_stream(&g_config,readbuf[0]);
|
parse_serial_stream(&g_config,readbuf[0]);
|
||||||
}
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
g_config.fp = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user