X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmotech-lps-30x%2Fprotocol.c;h=db69eb5f32f93c387f178e4a7889a11aaaee3f7b;hb=515ab0889ebde4b373d620044a1a98da37153056;hp=b97ce3b66e26403ccd3e4b6aaaef88517eda5b81;hpb=1beccaed464a4d92a070988a0331fe399f9f7a7a;p=libsigrok.git diff --git a/src/hardware/motech-lps-30x/protocol.c b/src/hardware/motech-lps-30x/protocol.c index b97ce3b6..db69eb5f 100644 --- a/src/hardware/motech-lps-30x/protocol.c +++ b/src/hardware/motech-lps-30x/protocol.c @@ -25,7 +25,6 @@ #include #include - #include "protocol.h" /** Send data packets for current measurements. */ @@ -77,7 +76,10 @@ static void process_line(struct sr_dev_inst *sdi) case 1: /* Waiting for data reply to request */ /* Convert numbers */ switch (devc->acq_req) { - case AQ_U1: case AQ_U2: case AQ_I1: case AQ_I2: + case AQ_U1: + case AQ_U2: + case AQ_I1: + case AQ_I2: if (sr_atod(devc->buf, &dbl) != SR_OK) { sr_err("Failed to convert '%s' to double, errno=%d %s", devc->buf, errno, strerror(errno)); @@ -196,8 +198,7 @@ SR_PRIV int motech_lps_30x_receive_data(int fd, int revents, void *cb_data) } } if (devc->acq_req_pending == 0) { - switch(devc->acq_req) - { + switch (devc->acq_req) { case AQ_NONE: /* Fall through */ case AQ_STATUS: devc->acq_req = AQ_U1;