motech-lps-30x: Cleanup.
This commit is contained in:
parent
1f7da0c2bb
commit
419bfb5009
|
@ -612,7 +612,7 @@ static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi,
|
|||
|
||||
devc = sdi->priv;
|
||||
|
||||
/* Cannot change settings while aquisition active, would cause a mess with commands.
|
||||
/* Cannot change settings while acquisition active, would cause a mess with commands.
|
||||
* Changing this would be possible, but tricky. */
|
||||
if (devc->acq_running)
|
||||
return SR_ERR_NA;
|
||||
|
|
|
@ -66,12 +66,10 @@ static void send_data(struct sr_dev_inst *sdi)
|
|||
static void process_line(struct sr_dev_inst *sdi)
|
||||
{
|
||||
struct dev_context *devc;
|
||||
struct sr_serial_dev_inst *serial;
|
||||
double dbl;
|
||||
int auxint;
|
||||
|
||||
devc = sdi->priv;
|
||||
serial = sdi->conn;
|
||||
|
||||
switch (devc->acq_req_pending) {
|
||||
case 0: /* Should not happen... */
|
||||
|
|
Loading…
Reference in New Issue