Revert binary: serialdump-linux
This commit is contained in:
parent
d8639df64b
commit
e38bc3bdcd
Binary file not shown.
@ -171,9 +171,9 @@ main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef O_DIRECT
|
#ifdef O_DIRECT
|
||||||
fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY | O_DIRECT | O_SYNC);
|
fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY | O_DIRECT | O_SYNC);
|
||||||
// Some system do not support certain parameters (e.g. raspberian)
|
/* Some systems do not support certain parameters (e.g. raspbian)
|
||||||
// Just do some random testing. Not sure wheter ther is a better way
|
* Just do some random testing. Not sure whether there is a better way
|
||||||
// of doing this.
|
* of doing this. */
|
||||||
if(fd < 0 && errno == EINVAL){
|
if(fd < 0 && errno == EINVAL){
|
||||||
fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY | O_SYNC);
|
fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY | O_SYNC);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user