X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmotech-lps-30x%2Fprotocol.c;h=ce097274428fc2f472c015dc6f4bd6c8b00c16bc;hb=4f0463a079f61ca60ac94a126a5a9cd0f40c14f3;hp=4de6f0e9d4b5fb7546fa85a17c172ffd943b602a;hpb=d9251a2c9f1ca4380c27240ccca90c9f9ed46d3f;p=libsigrok.git diff --git a/src/hardware/motech-lps-30x/protocol.c b/src/hardware/motech-lps-30x/protocol.c index 4de6f0e9..ce097274 100644 --- a/src/hardware/motech-lps-30x/protocol.c +++ b/src/hardware/motech-lps-30x/protocol.c @@ -18,14 +18,6 @@ * along with this program. If not, see . */ -/** - * @file - * - * Motech LPS-30x series power supply driver - * - * @internal - */ - #include #include #include @@ -95,7 +87,7 @@ static void process_line(struct sr_dev_inst *sdi) case AQ_U2: case AQ_I1: case AQ_I2: - if (sr_atod(devc->buf, &dbl) != SR_OK) { + if (sr_atod_ascii(devc->buf, &dbl) != SR_OK) { sr_err("Failed to convert '%s' to double, errno=%d %s", devc->buf, errno, g_strerror(errno)); dbl = 0.0; @@ -193,7 +185,7 @@ SR_PRIV int motech_lps_30x_receive_data(int fd, int revents, void *cb_data) } if (sr_sw_limits_check(&devc->limits)) - sdi->driver->dev_acquisition_stop(sdi); + sr_dev_acquisition_stop(sdi); /* Only request the next packet if required. */ if (!((sdi->status == SR_ST_ACTIVE) && (devc->acq_running)))