Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
trx-ecpri
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
trx-ecpri
Commits
b730271d
Commit
b730271d
authored
Jan 28, 2025
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
05f63dea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
trx_ecpri.c
trx_ecpri.c
+2
-2
No files found.
trx_ecpri.c
View file @
b730271d
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment