From: Uwe Hermann Date: Wed, 10 Jan 2018 19:03:54 +0000 (+0100) Subject: hantek-dso: Sample rate is a uint64_t. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6deb361bbf5b62109cdb5c4bede227cd56f9fcc5;p=libsigrok.git hantek-dso: Sample rate is a uint64_t. Also make 'base' uint64_t, otherwise there'll be compiler warnings. --- diff --git a/src/hardware/hantek-dso/protocol.c b/src/hardware/hantek-dso/protocol.c index a1d940fc..465f925b 100644 --- a/src/hardware/hantek-dso/protocol.c +++ b/src/hardware/hantek-dso/protocol.c @@ -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; diff --git a/src/hardware/hantek-dso/protocol.h b/src/hardware/hantek-dso/protocol.h index 626e7f9f..f6d4bc6d 100644 --- a/src/hardware/hantek-dso/protocol.h +++ b/src/hardware/hantek-dso/protocol.h @@ -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];