Commit 670fbcd
committed
SerialImp.c:RXTXCommDriver(testRead) - ignore tcgetattr() failures for hidraw device
If tcgetattr(fd, &ttyset) fails and errno is EINVAL 22 Invalid Argument, or ENOTTY - https://en.wikipedia.org/wiki/Not_a_typewriter, then this is not a serial device and do not try to adjust its settings.
First obtain the flags, so that these can be restored later.1 parent b1da316 commit 670fbcd
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4458 | 4458 | | |
4459 | 4459 | | |
4460 | 4460 | | |
4461 | | - | |
4462 | | - | |
4463 | | - | |
4464 | | - | |
4465 | | - | |
4466 | 4461 | | |
4467 | 4462 | | |
4468 | 4463 | | |
4469 | 4464 | | |
4470 | 4465 | | |
4471 | 4466 | | |
4472 | 4467 | | |
| 4468 | + | |
| 4469 | + | |
| 4470 | + | |
| 4471 | + | |
| 4472 | + | |
| 4473 | + | |
4473 | 4474 | | |
4474 | 4475 | | |
4475 | 4476 | | |
| |||
4490 | 4491 | | |
4491 | 4492 | | |
4492 | 4493 | | |
4493 | | - | |
| 4494 | + | |
4494 | 4495 | | |
4495 | 4496 | | |
4496 | 4497 | | |
| |||
0 commit comments