Commit b730271d authored by Joanne Hugé's avatar Joanne Hugé

wip

parent 05f63dea
......@@ -472,7 +472,7 @@ static void *recv_thread(void *p) {
stop = 1; break;
}
// Exit if antenna ID is not in range
antenna_id = ntohs(header->antenna_id);
antenna_id = ntohs(header->antenna_id) - 1;
if(antenna_id > s->rx_n_channel || antenna_id < 0) {
log_info("DECODE_THREAD", "Wrong Antenna ID: %d\n", antenna_id);
stop = 1; break;
......@@ -550,7 +550,7 @@ static void *send_thread(void *p) {
iq_packet = (ecpri_iq_packet*) (tx_buf + encoded * PACKET_SIZE);
// PC_ID
iq_packet->antenna_id = htons(antenna_id);
iq_packet->antenna_id = htons(antenna_id) + 1;
// SEQ_ID
iq_packet->seq_id = (uint8_t) tx_seq_id;
tx_seq_id = (tx_seq_id + 1) % 256;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment