forked from Ivasoft/DSView
Add file save/load and export support for DAQ mode
Fix file save/load and export issue
This commit is contained in:
@@ -123,7 +123,6 @@ static const char *probeMapUnits[] = {
|
||||
"g",
|
||||
"m",
|
||||
"m/s",
|
||||
"Custom",
|
||||
};
|
||||
|
||||
static const uint64_t samplerates[] = {
|
||||
|
||||
@@ -1342,7 +1342,7 @@ static void receive_transfer(struct libusb_transfer *transfer)
|
||||
analog.mq = SR_MQ_VOLTAGE;
|
||||
analog.unit = SR_UNIT_VOLT;
|
||||
analog.mqflags = SR_MQFLAG_AC;
|
||||
analog.data = (float *)cur_buf;
|
||||
analog.data = cur_buf;
|
||||
}
|
||||
|
||||
if ((devc->limit_samples && devc->num_bytes < devc->actual_bytes) ||
|
||||
|
||||
@@ -187,7 +187,6 @@ static const char *probeMapUnits[] = {
|
||||
"g",
|
||||
"m",
|
||||
"m/s",
|
||||
"Custom",
|
||||
};
|
||||
|
||||
static const int const_dc = 1.95 / 10 * 255;
|
||||
@@ -1162,7 +1161,7 @@ static int receive_data(int fd, int revents, const struct sr_dev_inst *sdi)
|
||||
analog.mq = SR_MQ_VOLTAGE;
|
||||
analog.unit = SR_UNIT_VOLT;
|
||||
analog.mqflags = SR_MQFLAG_AC;
|
||||
analog.data = (float *)devc->buf;
|
||||
analog.data = devc->buf;
|
||||
}
|
||||
|
||||
if (sdi->mode == DSO && !devc->instant) {
|
||||
|
||||
Reference in New Issue
Block a user