Displaying 2 results from an estimated 2 matches for "serial_handler_t".
2011 Jan 26
0
[nut-commits] svn commit r2854 - branches/windows_port/common
Citeren Frederic BOHE <fbohe-guest op alioth.debian.org>:
> - res = w32_serial_read(fd,buf,buflen,timeout);
> + res = w32_serial_read((serial_handler_t *)fd,buf,buflen,timeout);
Rather than casting away the const (which may not be possible with
certain strict compiler flags), it is better to modify the prototype
and definition of this function to take a 'const serial_handler_t *fd'
instead.
Best regards, Arjen
--
Please keep list...
2011 Sep 19
1
[windows port] blazer_ser issues, select_read() from serial semantics
...a heavy
system load.
TIA
Something like this might be appropriate for the windows version (tested
here with our UPSes):
diff --git a/common/wincompat.c b/common/wincompat.c
index 86c786f..f271a3a 100644
--- a/common/wincompat.c
+++ b/common/wincompat.c
@@ -411,12 +411,15 @@ int w32_serial_read (serial_handler_t * sh, void *ptr, size_t ulen, DWORD tim
upsdebugx(4,"w32_serial_read : characters are avail
break;
case WAIT_TIMEOUT:
-...