appa-55ii: properly set encoding digits also for log memory reception

This commit is contained in:
Aurelien Jacobs 2016-08-28 22:53:04 +02:00 committed by Uwe Hermann
parent 962172e495
commit a005472fa2
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ static void appa_55ii_log_data_parse(struct sr_dev_inst *sdi)
/* FIXME: Timestamp should be sent in the packet. */
sr_dbg("Timestamp: %02d:%02d:%02d", buf[2], buf[3], buf[4]);
sr_analog_init(&analog, &encoding, &meaning, &spec, 0);
sr_analog_init(&analog, &encoding, &meaning, &spec, 1);
analog.num_samples = 1;
analog.meaning->mq = SR_MQ_TEMPERATURE;
analog.meaning->unit = SR_UNIT_CELSIUS;