X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fhardware%2Fmotech-lps-30x%2Fprotocol.c;h=beb2bcdef3b2ea60c5c1aa22758282275dfff8fd;hb=d043b29d5c99c7b72044d19c758c47de4138f0e8;hp=80b799d9e9dd1c08cf0590fa055af97729b957b6;hpb=ddfe99d92f70a8a26cb3aa809e59c6a242897bd3;p=libsigrok.git diff --git a/src/hardware/motech-lps-30x/protocol.c b/src/hardware/motech-lps-30x/protocol.c index 80b799d9..beb2bcde 100644 --- a/src/hardware/motech-lps-30x/protocol.c +++ b/src/hardware/motech-lps-30x/protocol.c @@ -51,6 +51,8 @@ static void send_data(struct sr_dev_inst *sdi) analog.meaning->mq = SR_MQ_VOLTAGE; analog.meaning->unit = SR_UNIT_VOLT; analog.meaning->mqflags = SR_MQFLAG_DC; + analog.encoding->digits = 3; + analog.spec->spec_digits = 2; analog.data = data; for (i = 0; i < devc->model->num_channels; i++) @@ -60,6 +62,8 @@ static void send_data(struct sr_dev_inst *sdi) analog.meaning->mq = SR_MQ_CURRENT; analog.meaning->unit = SR_UNIT_AMPERE; analog.meaning->mqflags = 0; + analog.encoding->digits = 4; + analog.spec->spec_digits = 3; analog.data = data; for (i = 0; i < devc->model->num_channels; i++) ((float *)analog.data)[i] = devc->channel_status[i].output_current_last; /* Value always 0 for channel 3, if present! */