Skip to content
Snippets Groups Projects
Commit 7aa2f678 authored by Torben Petersen's avatar Torben Petersen
Browse files

Applied changes to code to work with newer RIOT Version

parent a20f63e5
No related branches found
No related tags found
No related merge requests found
......@@ -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_getpid());
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment