From 7bdf34cc091ce558e27c260aaf37f2096fd92ca2 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 28 May 2017 19:30:52 +0200 Subject: 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. --- src/fmt_ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fmt_ti.c') 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; -- cgit v1.2.3