Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ieee802154-radio-eval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
ieee802154-radio-eval
Commits
7aa2f678
Commit
7aa2f678
authored
3 years ago
by
Torben Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Applied changes to code to work with newer RIOT Version
parent
a20f63e5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
software/main.c
+3
-2
3 additions, 2 deletions
software/main.c
with
3 additions
and
2 deletions
software/main.c
+
3
−
2
View file @
7aa2f678
...
...
@@ -34,6 +34,7 @@
#include
"net/gnrc/netreg.h"
#include
"net/gnrc/netif/ieee802154.h"
#include
"periph/i2c.h"
#include
"sched.h"
#define ENABLE_DEBUG (0)
#include
"debug.h"
...
...
@@ -306,7 +307,7 @@ void *dump_thread(void *arg)
msg_t
dump_thread_msg_queue
[
RCV_QUEUE_SIZE
];
msg_init_queue
(
dump_thread_msg_queue
,
RCV_QUEUE_SIZE
);
gnrc_netreg_entry_t
me_reg
=
GNRC_NETREG_ENTRY_INIT_PID
(
GNRC_NETREG_DEMUX_CTX_ALL
,
sched_active_
pid
);
gnrc_netreg_entry_t
me_reg
=
GNRC_NETREG_ENTRY_INIT_PID
(
GNRC_NETREG_DEMUX_CTX_ALL
,
thread_get
pid
()
);
gnrc_netreg_register
(
GNRC_NETTYPE_UNDEF
,
&
me_reg
);
msg_t
msg
;
...
...
@@ -347,7 +348,7 @@ void *dump_thread(void *arg)
}
packet
=
(
eval_message_t
*
)
payload
->
data
;
if
(
hdr
->
crc_valid
)
{
if
(
hdr
->
flags
&
GNRC_NETIF_HDR_FLAGS_CRC_VALID
)
{
if
(
strcmp
(
packet
->
magic_string
,
MAGIC_STRING
)
==
0
)
{
puts
(
"<magic:found"
);
int
length
=
sprintf
(
serialbuffer
,
"%u|%u|%d|%u"
,
packet
->
node_id
,
packet
->
seq_nr
,
hdr
->
rssi
,
hdr
->
lqi
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment