Fix serial port issues on Linux and add proper Direct mode to NZXT Hue+
This commit is contained in:
parent
e7dc95313f
commit
18aa3d35cb
4 changed files with 7 additions and 4 deletions
|
|
@ -202,7 +202,9 @@ int serial_port::serial_write(char * buffer, int length)
|
|||
#ifdef __linux__
|
||||
|
||||
int byteswritten;
|
||||
tcdrain(file_descriptor);
|
||||
byteswritten = write(file_descriptor, buffer, length);
|
||||
tcdrain(file_descriptor);
|
||||
return byteswritten;
|
||||
|
||||
#endif /* __linux__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue