]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hantek-dso/dso.h
hantek-dso: relays now set properly
[libsigrok.git] / hardware / hantek-dso / dso.h
index aa0cd8be001ab6e20c788b80df7861668f08adc3..3220b90df0b4c8a0d2d930672346cc50c5e910ab 100644 (file)
@@ -36,7 +36,7 @@
 #define DEFAULT_FRAMESIZE          FRAMESIZE_SMALL
 #define DEFAULT_TIMEBASE           TIME_100us
 #define DEFAULT_TRIGGER_SOURCE     "CH1"
-#define DEFAULT_COUPLING           COUPLING_AC
+#define DEFAULT_COUPLING           COUPLING_DC
 #define DEFAULT_HORIZ_TRIGGERPOS   0.5
 #define DEFAULT_VERT_OFFSET        0.5
 #define DEFAULT_VERT_TRIGGERPOS    0.5
@@ -160,7 +160,7 @@ struct dso_profile {
 };
 
 struct context {
-       struct dso_profile *profile;
+       const struct dso_profile *profile;
        struct sr_usb_dev_inst *usb;
        void *cb_data;
        uint64_t limit_frames;