]> sigrok.org Git - libsigrok.git/commitdiff
serial: Compile-fix for Windows/MinGW.
authorUwe Hermann <redacted>
Wed, 14 Nov 2012 17:20:13 +0000 (18:20 +0100)
committerUwe Hermann <redacted>
Wed, 14 Nov 2012 17:20:13 +0000 (18:20 +0100)
hardware/common/serial.c

index 3bb073870702da6853de02996132cade7d501182..84d8f380c68d7a260738c1526e1e7c0c44afa2b4 100644 (file)
@@ -163,7 +163,7 @@ SR_PRIV int serial_flush(struct sr_serial_dev_inst *serial)
 
 #ifdef _WIN32
        /* Returns non-zero upon success, 0 upon failure. */
-       if (PurgeComm(hdl, PURGE_RXCLEAR | PURGE_TXCLEAR) == 0) {
+       if (PurgeComm(hdl, PURGE_RXCLEAR | PURGE_TXCLEAR) == 0) {
                sr_err("Error flushing serial port: %s.", strerror(errno));
                ret = SR_ERR;
        }