Fix serial input spam when no terminal on stdin

This commit is contained in:
Ada Gottensträter 2022-10-09 22:41:15 +02:00 committed by yeti
parent 154d880a27
commit 43c419fc85
1 changed files with 1 additions and 0 deletions

View File

@ -525,6 +525,7 @@ int CheckSerialIn(SerialT *serial)
value = getch();
//printf("CheckSerialIn: value = %x\n", value);
if (value == 0x1d) return 1;
if (value == EOF) return 0;
serial->flag = 1;
serial->value = value;
}