2
0
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:
DreamSourceLab
2018-05-16 17:04:11 +08:00
parent fd7c9cd1ce
commit a2a326f0d2
19 changed files with 363 additions and 93 deletions

View File

@@ -123,7 +123,6 @@ static const char *probeMapUnits[] = {
"g",
"m",
"m/s",
"Custom",
};
static const uint64_t samplerates[] = {

View File

@@ -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) ||

View File

@@ -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) {