Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
wangjie
OpenXG-RAN
Commits
a8a34df0
Commit
a8a34df0
authored
Apr 14, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation warning in oai_usrpdevif
parent
3c59974b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+9
-9
No files found.
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
a8a34df0
...
...
@@ -1337,18 +1337,18 @@ extern "C" {
if
(
is_equal
(
s
->
sample_rate
,
(
double
)
7.68e6
))
s
->
tx_forward_nsamps
=
50
;
recplay_state_t
*
recPlay
=
device
->
recplay_state
;
recplay_state_t
*
recPlay
=
device
->
recplay_state
;
if
(
recPlay
!=
NULL
)
{
// record mode
recPlay
->
maxSizeBytes
=
openair0_cfg
[
0
].
recplay_conf
->
u_sf_max
*
if
(
recPlay
!=
NULL
)
{
// record mode
recPlay
->
maxSizeBytes
=
openair0_cfg
[
0
].
recplay_conf
->
u_sf_max
*
(
sizeof
(
iqrec_t
)
+
BELL_LABS_IQ_BYTES_PER_SF
);
recPlay
->
ms_sample
=
(
iqrec_t
*
)
malloc
(
recPlay
->
maxSizeBytes
);
recPlay
->
currentPtr
=
(
uint8_t
*
)
recPlay
->
ms_sample
;
recPlay
->
ms_sample
=
(
iqrec_t
*
)
malloc
(
recPlay
->
maxSizeBytes
);
recPlay
->
currentPtr
=
(
uint8_t
*
)
recPlay
->
ms_sample
;
if
(
recPlay
->
ms_sample
==
NULL
)
{
std
::
cerr
<<
"Memory allocation failed for subframe record or replay mode."
<<
std
::
endl
;
exit
(
-
1
);
}
if
(
recPlay
->
ms_sample
==
NULL
)
{
std
::
cerr
<<
"Memory allocation failed for subframe record or replay mode."
<<
std
::
endl
;
exit
(
-
1
);
}
}
return
0
;
}
...
...
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