mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
examples/default: set src addr correctly
This commit is contained in:
parent
db727d1d85
commit
19f612cf2c
@ -239,8 +239,9 @@ void _transceiver_send_handler(int argc, char **argv)
|
||||
p.frame.payload = (uint8_t*) text_msg;
|
||||
p.frame.payload_len = strlen(text_msg) + 1;
|
||||
p.frame.fcf.dest_addr_m = IEEE_802154_SHORT_ADDR_M;
|
||||
p.frame.fcf.src_addr_m = IEEE_802154_SHORT_ADDR_M;
|
||||
memset(p.frame.dest_addr, 0, sizeof(p.frame.dest_addr));
|
||||
p.frame.dest_addr[7] = atoi(argv[1]);
|
||||
p.frame.dest_addr[0] = atoi(argv[1]);
|
||||
#else
|
||||
p.data = (uint8_t *) text_msg;
|
||||
p.length = strlen(text_msg) + 1;
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
#include "ieee802154_frame.h"
|
||||
#endif
|
||||
|
||||
#define ENABLE_DEBUG (0)
|
||||
#define ENABLE_DEBUG (1)
|
||||
#if ENABLE_DEBUG
|
||||
#define DEBUG_ENABLED
|
||||
#undef TRANSCEIVER_STACK_SIZE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user