]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/conrad-digi-35-cpu/protocol.c
brymen-dmm: Fix blocking serial write timeout.
[libsigrok.git] / src / hardware / conrad-digi-35-cpu / protocol.c
index caf1e85db17962d376a1777f9e012cbd6157eb81..32702d8398fac5f0d40588fbbd716b2586858067 100644 (file)
@@ -23,6 +23,7 @@
  * @internal
  */
 
+#include <config.h>
 #include "protocol.h"
 
 /**
@@ -57,7 +58,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;
 }