]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/conrad-digi-35-cpu/protocol.c
Various #include file cosmetic fixes.
[libsigrok.git] / src / hardware / conrad-digi-35-cpu / protocol.c
index 6b1d0d56af1c8923a5680452625f4983ad5b4640..a414bd7b58e084e09d690cd86a23e2eca76f704b 100644 (file)
@@ -48,7 +48,7 @@ SR_PRIV int send_msg1(const struct sr_dev_inst *sdi, char cmd, int param)
 
        sr_spew("send_msg1(): %c%c%c%c\\r", buf[0], buf[1], buf[2], buf[3]);
 
-       if (serial_write_blocking(serial, buf, sizeof(buf)) < sizeof(buf)) {
+       if (serial_write_blocking(serial, buf, sizeof(buf), 0) < (int)sizeof(buf)) {
                sr_err("Write error for cmd=%c", cmd);
                return SR_ERR;
        }
@@ -57,7 +57,7 @@ SR_PRIV int send_msg1(const struct sr_dev_inst *sdi, char cmd, int param)
         * Wait 50ms to ensure that the device does not swallow any of the
         * following commands.
         */
-       g_usleep(50000);
+       g_usleep(50 * 1000);
 
        return SR_OK;
 }