hantek-dso: Sample rate is a uint64_t.
Also make 'base' uint64_t, otherwise there'll be compiler warnings.
This commit is contained in:
parent
ab8df2b1a6
commit
6deb361bbf
|
@ -263,7 +263,7 @@ static int dso2250_set_trigger_samplerate(const struct sr_dev_inst *sdi)
|
||||||
struct dev_context *devc;
|
struct dev_context *devc;
|
||||||
struct sr_usb_dev_inst *usb;
|
struct sr_usb_dev_inst *usb;
|
||||||
int ret, tmp;
|
int ret, tmp;
|
||||||
int base;
|
uint64_t base;
|
||||||
uint8_t cmdstring[12];
|
uint8_t cmdstring[12];
|
||||||
int trig;
|
int trig;
|
||||||
|
|
||||||
|
|
|
@ -190,7 +190,7 @@ struct dev_context {
|
||||||
int dev_state;
|
int dev_state;
|
||||||
|
|
||||||
/* Oscilloscope settings. */
|
/* Oscilloscope settings. */
|
||||||
int samplerate;
|
uint64_t samplerate;
|
||||||
int timebase;
|
int timebase;
|
||||||
gboolean ch_enabled[2];
|
gboolean ch_enabled[2];
|
||||||
int voltage[2];
|
int voltage[2];
|
||||||
|
|
Loading…
Reference in New Issue