]> sigrok.org Git - libsigrok.git/blobdiff - hardware/openbench-logic-sniffer/ols.c
Fix warnings: g_fopen() needs <glib/gstdio.h>.
[libsigrok.git] / hardware / openbench-logic-sniffer / ols.c
index 9ebd6b094c18d96088155ebf08fe021f801d503d..ec9fa4ed6c5bacd52f6508aa3f5ef625c4bef95c 100644 (file)
@@ -24,7 +24,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
-#ifndef _WIN32
+#ifdef _WIN32
+#include <windows.h>
+#else
 #include <termios.h>
 #endif
 #include <string.h>
@@ -319,7 +321,7 @@ static int hw_init(char *deviceinfo)
        free(serial_params);
        g_slist_free(ports);
 
-       cur_samplerate = samplerates.low;
+       cur_samplerate = KHZ(200);
 
        return final_devcnt;
 }