]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hantek-dso/protocol.h
hantek-dso: dso2250: It's not HORIZ_TRIGGERPOS but CAPTURE_RATIO.
[libsigrok.git] / src / hardware / hantek-dso / protocol.h
index f210329ddb3dd701185f3c4957f0fcd6760dbcf9..626647163f7a4cffd0fd455fad52a9c594199419 100644 (file)
@@ -40,7 +40,7 @@
 #define DEFAULT_SAMPLERATE      SR_KHZ(10)
 #define DEFAULT_TRIGGER_SOURCE  "CH1"
 #define DEFAULT_COUPLING        COUPLING_DC
-#define DEFAULT_HORIZ_TRIGGERPOS 0.5
+#define DEFAULT_CAPTURE_RATIO   100
 #define DEFAULT_VERT_OFFSET     0.5
 #define DEFAULT_VERT_TRIGGERPOS 0.5
 
@@ -202,7 +202,7 @@ struct dev_context {
        gboolean filter[2];
        int triggerslope;
        char *triggersource;
-       float triggerposition;
+       int capture_ratio;
        int triggermode;
 
        /* Frame transfer */