mirror of https://gerrit.osmocom.org/gapk
fmt_ti: fix lsb/msb mix-up in ti_hr_from_canon()
I noticed that ti-hr format doesn't pass an encode-decode-playback test, and discussion with tnt resulted in the following conclusion: 19:29 <@tnt> looking at fr and efr, it's always msb_xxx 19:30 <@tnt> and if I ever used it, then most likely it was for decoding meaning ti_hr_to_canon would have been used and not the other way around.
This commit is contained in:
parent
076d41aa79
commit
7bdf34cc09
|
@ -55,7 +55,7 @@ ti_hr_from_canon(uint8_t *dst, const uint8_t *src, unsigned int src_len)
|
|||
for (i=0; i<112; i++) {
|
||||
int si = bit_mapping[i];
|
||||
int di = i >= 95 ? i+4 : i;
|
||||
lsb_put_bit(dst, di, msb_get_bit(src, si));
|
||||
msb_put_bit(dst, di, msb_get_bit(src, si));
|
||||
}
|
||||
|
||||
return TI_LEN;
|
||||
|
|
Loading…
Reference in New Issue