Fix serial port issues on Linux and add proper Direct mode to NZXT Hue+

This commit is contained in:
Adam Honse 2020-12-03 21:35:51 -06:00
parent e7dc95313f
commit 18aa3d35cb
4 changed files with 7 additions and 4 deletions

View file

@ -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__ */