1
0
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:
Thomas Eichinger 2014-09-02 11:37:04 +02:00
parent db727d1d85
commit 19f612cf2c
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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