summaryrefslogtreecommitdiff
path: root/gsm-tvoid/src/lib/sch.c
diff options
context:
space:
mode:
authorleo <leo@brix.(none)>2008-02-21 02:55:05 +0000
committerleo <leo@brix.(none)>2008-02-21 02:55:05 +0000
commit21aadd29384bfa45639940fc904592b8a7a5a073 (patch)
treef7f79e0d6db99d4937cd11ade0832487fc2041b9 /gsm-tvoid/src/lib/sch.c
parent5634262d43aaba54a56078334e21688a3d5345b4 (diff)
tvoid's suggested cleanup.
Diffstat (limited to 'gsm-tvoid/src/lib/sch.c')
-rw-r--r--gsm-tvoid/src/lib/sch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gsm-tvoid/src/lib/sch.c b/gsm-tvoid/src/lib/sch.c
index c01d7bb..d311371 100644
--- a/gsm-tvoid/src/lib/sch.c
+++ b/gsm-tvoid/src/lib/sch.c
@@ -243,10 +243,10 @@ int decode_sch(const unsigned char *buf, int *fn_o, int *bsic_o) {
unsigned char data[CONV_SIZE], decoded_data[PARITY_OUTPUT_SIZE];
// extract encoded data from synchronization burst
- /* buf + 3, 39 bit */
- /* buf + 3 + 39 + 64 = 106, 39 */
- memcpy(data, buf + SB_EDATA_OS_1, SB_EDATA_LEN_1);
- memcpy(data + SB_EDATA_LEN_1, buf + SB_EDATA_OS_2, SB_EDATA_LEN_2);
+ /* buf, 39 bit */
+ /* buf + 39 + 64 = 103, 39 */
+ memcpy(data, buf, SB_EDATA_LEN_1);
+ memcpy(data + SB_EDATA_LEN_1, buf + SB_EDATA_LEN_1 + N_SYNC_BITS, SB_EDATA_LEN_2);
// Viterbi decode
if(errors = conv_decode(data, decoded_data)) {
personal git repositories of Harald Welte. Your mileage may vary