mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
FIX: tcgetattr for Linux in Ukbhit(), should return -1 if fail.
This commit is contained in:
parent
f37fe8cb10
commit
d04b71c168
1 changed files with 6 additions and 6 deletions
|
@ -21,7 +21,7 @@ int ukbhit(void)
|
||||||
int error;
|
int error;
|
||||||
static struct termios Otty, Ntty;
|
static struct termios Otty, Ntty;
|
||||||
|
|
||||||
if ( tcgetattr( 0, &Otty) == -1) return false;
|
if ( tcgetattr( 0, &Otty) == -1) return -1;
|
||||||
Ntty = Otty;
|
Ntty = Otty;
|
||||||
|
|
||||||
Ntty.c_iflag = 0; /* input mode */
|
Ntty.c_iflag = 0; /* input mode */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue