File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2019, The Bifrost Authors. All rights reserved.
2
+ * Copyright (c) 2019-2021 , The Bifrost Authors. All rights reserved.
3
3
*
4
4
* Redistribution and use in source and binary forms, with or without
5
5
* modification, are permitted provided that the following conditions
@@ -62,6 +62,7 @@ class CORDecoder : virtual public PacketDecoder {
62
62
const cor_hdr_type* pkt_hdr = (cor_hdr_type*)pkt_ptr;
63
63
const uint8_t * pkt_pld = pkt_ptr + sizeof (cor_hdr_type);
64
64
int pld_size = pkt_size - sizeof (cor_hdr_type);
65
+ uint8_t nchan_decim = (be32toh (pkt_hdr->frame_count_word ) >> 16 ) & 0xFF ;
65
66
uint8_t nserver = (be32toh (pkt_hdr->frame_count_word ) >> 8 ) & 0xFF ;
66
67
uint8_t server = be32toh (pkt_hdr->frame_count_word ) & 0xFF ;
67
68
uint16_t nchan_pkt = (pld_size/(8 *4 ));
@@ -76,7 +77,7 @@ class CORDecoder : virtual public PacketDecoder {
76
77
pkt->src = (stand0*(2 *(nstand-1 )+1 -stand0)/2 + stand1 + 1 - _src0)*nserver \
77
78
+ (server - 1 );
78
79
pkt->chan0 = be16toh (pkt_hdr->first_chan ) \
79
- - nchan_pkt * (server - 1 );
80
+ - nchan_decim* nchan_pkt * (server - 1 );
80
81
pkt->nchan = nchan_pkt;
81
82
pkt->tuning = (nserver << 8 ) | (server - 1 ); // Stores the number of servers and
82
83
// the server that sent this packet
You can’t perform that action at this time.
0 commit comments