X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fnorma-dmm%2Fprotocol.c;h=8e1466a42df76e0a5504890cf492bd21fb233380;hb=499b17e9c043e1ec92e71095289d63f09b981eea;hp=45546ab0c607c6aa6cf9ac67ec7a4d57f39f8be5;hpb=e790bd5cda9ccf99474b2d4998d3dd4e204416ea;p=libsigrok.git diff --git a/hardware/norma-dmm/protocol.c b/hardware/norma-dmm/protocol.c index 45546ab0..8e1466a4 100644 --- a/hardware/norma-dmm/protocol.c +++ b/hardware/norma-dmm/protocol.c @@ -70,7 +70,7 @@ SR_PRIV int xgittoint(char xgit) } /** - * Process received line. It consists of 20 hex digits + \r\n, + * Process received line. It consists of 20 hex digits + \\r\\n, * e.g. '08100400018100400000'. */ static void nma_process_line(const struct sr_dev_inst *sdi) @@ -349,7 +349,7 @@ static void nma_process_line(const struct sr_dev_inst *sdi) (double)scale, (double)value); /* Finish and send packet. */ - analog.probes = sdi->probes; + analog.channels = sdi->channels; analog.num_samples = 1; analog.data = &value; @@ -401,7 +401,7 @@ SR_PRIV int norma_dmm_receive_data(int fd, int revents, void *cb_data) } } - /* If number of samples or time limit reached, stop aquisition. */ + /* If number of samples or time limit reached, stop acquisition. */ terminating = FALSE; if (devc->limit_samples && (devc->num_samples >= devc->limit_samples)) { sdi->driver->dev_acquisition_stop(sdi, cb_data);