From 6deb361bbf5b62109cdb5c4bede227cd56f9fcc5 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 10 Jan 2018 20:03:54 +0100 Subject: [PATCH] hantek-dso: Sample rate is a uint64_t. Also make 'base' uint64_t, otherwise there'll be compiler warnings. --- src/hardware/hantek-dso/protocol.c | 2 +- src/hardware/hantek-dso/protocol.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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];