cem-dt-885x: properly set encoding digits

This commit is contained in:
Aurelien Jacobs 2016-08-24 00:50:48 +02:00
parent f4bd8a1718
commit 8c50007222
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ static void process_mset(const struct sr_dev_inst *sdi)
break;
}
}
sr_analog_init(&analog, &encoding, &meaning, &spec, 0);
sr_analog_init(&analog, &encoding, &meaning, &spec, 1);
analog.meaning->mq = SR_MQ_SOUND_PRESSURE_LEVEL;
analog.meaning->mqflags = devc->cur_mqflags;
analog.meaning->unit = SR_UNIT_DECIBEL_SPL;
@ -195,7 +195,7 @@ static void send_data(const struct sr_dev_inst *sdi, unsigned char *data,
fbuf[i] += ((data[i * 2 + 1] & 0xf0) >> 4);
fbuf[i] += (data[i * 2 + 1] & 0x0f) / 10.0;
}
sr_analog_init(&analog, &encoding, &meaning, &spec, 0);
sr_analog_init(&analog, &encoding, &meaning, &spec, 1);
analog.meaning->mq = SR_MQ_SOUND_PRESSURE_LEVEL;
analog.meaning->mqflags = devc->cur_mqflags;
analog.meaning->unit = SR_UNIT_DECIBEL_SPL;