diff options
author | leo <leo@brix.(none)> | 2008-02-21 02:55:05 +0000 |
---|---|---|
committer | leo <leo@brix.(none)> | 2008-02-21 02:55:05 +0000 |
commit | 21aadd29384bfa45639940fc904592b8a7a5a073 (patch) | |
tree | f7f79e0d6db99d4937cd11ade0832487fc2041b9 /gsm-tvoid/src/lib/sch.c | |
parent | 5634262d43aaba54a56078334e21688a3d5345b4 (diff) |
tvoid's suggested cleanup.
Diffstat (limited to 'gsm-tvoid/src/lib/sch.c')
-rw-r--r-- | gsm-tvoid/src/lib/sch.c | 8 |
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)) { |