}
/**
- * 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)
(double)scale, (double)value);
/* Finish and send packet. */
- analog.probes = sdi->probes;
+ analog.channels = sdi->channels;
analog.num_samples = 1;
analog.data = &value;
}
}
- /* 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);