mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Temporarily disable USE_TERMIOX code (breaks the lib).
On some systems the use of the code enabled by USE_TERMIOX leads to a non-working sp_open() which breaks all functionality provided by the lib. Thus, temporarily disable that code until the details are investigated. This has been tested with a serial port DMM and the OLS logic analyzer on an x86 64bit Linux system with kernel version 3.11. The code compiles fine but doesn't work at runtime. The configure output included: checking for struct termios2... yes checking for struct termiox... yes The root cause for the problem is that the ioctl(fd, TCGETX, data) call in get_flow() returns -1 ("Invalid argument"), which in turn lets sp_open() return SP_ERR_FAIL.
This commit is contained in:
parent
24abdb680f
commit
1d5d2a166f
@ -46,7 +46,8 @@
|
|||||||
#include "linux/serial.h"
|
#include "linux/serial.h"
|
||||||
#include "linux_termios.h"
|
#include "linux_termios.h"
|
||||||
#if defined(TCGETX) && defined(TCSETX) && defined(HAVE_TERMIOX)
|
#if defined(TCGETX) && defined(TCSETX) && defined(HAVE_TERMIOX)
|
||||||
#define USE_TERMIOX
|
// FIXME: Temporarily disabled, breaks all lib functionality on some systems.
|
||||||
|
// #define USE_TERMIOX
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user