ols: Display actual expanded sample instead of the raw sample

While the raw sample is the actual received data, the expanded sample is the
crucial data I as a developer am interested in seeing. At least if I assume that
the sample expansion works.
This commit is contained in:
v1ne 2020-04-01 16:15:36 +02:00 committed by Gerhard Sittig
parent aad6b9de5f
commit 29f15d52cb
1 changed files with 2 additions and 1 deletions

View File

@ -463,7 +463,8 @@ SR_PRIV int ols_receive_data(int fd, int revents, void *cb_data)
}
}
memcpy(devc->sample, devc->tmp_sample, 4);
sr_spew("Expanded sample: 0x%.8x.", sample);
sr_spew("Expanded sample: 0x%.2hhx%.2hhx%.2hhx%.2hhx ",
devc->sample[3], devc->sample[2], devc->sample[1], devc->sample[0]);
}
/*