X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fpipistrello-ols%2Fprotocol.c;h=3db3aa4b5eaf01d9a6f04f061fc5c4499084fa8c;hb=6433156c3275df933e4bf6dcfb020c91fca0ae86;hp=ec588b41563b4aba7bc5074945e2bd036912d7dd;hpb=6d9da8efbf1429301922eb7ab1551866362544ab;p=libsigrok.git diff --git a/src/hardware/pipistrello-ols/protocol.c b/src/hardware/pipistrello-ols/protocol.c index ec588b41..3db3aa4b 100644 --- a/src/hardware/pipistrello-ols/protocol.c +++ b/src/hardware/pipistrello-ols/protocol.c @@ -505,7 +505,9 @@ SR_PRIV int p_ols_receive_data(int fd, int revents, void *cb_data) } /* Clear out the most significant bit of the sample */ devc->tmp_sample[devc->num_bytes - 1] &= 0x7f; - sr_spew("Expanded sample 1: 0x%.8x.", devc->tmp_sample); + sr_spew("Expanded sample 1: 0x%.2x%.2x%.2x%.2x.", + devc->tmp_sample[3], devc->tmp_sample[2], + devc->tmp_sample[1], devc->tmp_sample[0]); /* expand second sample */ memset(devc->tmp_sample2, 0, 4); @@ -521,7 +523,9 @@ SR_PRIV int p_ols_receive_data(int fd, int revents, void *cb_data) } /* Clear out the most significant bit of the sample */ devc->tmp_sample2[devc->num_bytes - 1] &= 0x7f; - sr_spew("Expanded sample 2: 0x%.8x.", devc->tmp_sample2); + sr_spew("Expanded sample 2: 0x%.2x%.2x%.2x%.2x.", + devc->tmp_sample2[3], devc->tmp_sample2[2], + devc->tmp_sample2[1], devc->tmp_sample2[0]); /* * OLS sends its sample buffer backwards.