path: root/src/fmt_ti.c
diff options
authorHarald Welte <>2017-05-28 19:30:52 +0200
committerHarald Welte <>2017-05-28 19:33:05 +0200
commit7bdf34cc091ce558e27c260aaf37f2096fd92ca2 (patch)
treef27de40ddf8d7841d248219d0326a1326bc0d77e /src/fmt_ti.c
parent076d41aa794da9f07da85174ff728c27ad66ae7b (diff)
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.
Diffstat (limited to 'src/fmt_ti.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt_ti.c b/src/fmt_ti.c
index 627593c..582bff4 100644
--- a/src/fmt_ti.c
+++ b/src/fmt_ti.c
@@ -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;