]> sigrok.org Git - libsigrok.git/commitdiff
hantek-dso: Sample rate is a uint64_t.
authorUwe Hermann <redacted>
Wed, 10 Jan 2018 19:03:54 +0000 (20:03 +0100)
committerUwe Hermann <redacted>
Thu, 11 Jan 2018 01:21:50 +0000 (02:21 +0100)
Also make 'base' uint64_t, otherwise there'll be compiler warnings.

src/hardware/hantek-dso/protocol.c
src/hardware/hantek-dso/protocol.h

index a1d940fc5d25e577450000bf9c524afde2a3d22f..465f925b46c986d83181e422869c776a8692c1a5 100644 (file)
@@ -263,7 +263,7 @@ static int dso2250_set_trigger_samplerate(const struct sr_dev_inst *sdi)
        struct dev_context *devc;
        struct sr_usb_dev_inst *usb;
        int ret, tmp;
-       int base;
+       uint64_t base;
        uint8_t cmdstring[12];
        int trig;
 
index 626e7f9fdc71dc441f9be716181e0f3dbc1d562d..f6d4bc6d28c94573cba7977f85ade8c74800f908 100644 (file)
@@ -190,7 +190,7 @@ struct dev_context {
        int dev_state;
 
        /* Oscilloscope settings. */
-       int samplerate;
+       uint64_t samplerate;
        int timebase;
        gboolean ch_enabled[2];
        int voltage[2];