mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #187 from LudwigOrtmann/nativenet_fix_packet
fix nativenet payload pointer init
This commit is contained in:
commit
f318bde38b
@ -185,6 +185,7 @@ void _nativenet_handle_packet(radio_packet_t *packet)
|
||||
/* copy packet to rx buffer */
|
||||
memcpy(&_nativenet_rx_buffer[rx_buffer_next].data, packet->data, packet->length);
|
||||
memcpy(&_nativenet_rx_buffer[rx_buffer_next].packet, packet, sizeof(radio_packet_t));
|
||||
_nativenet_rx_buffer[rx_buffer_next].packet.data = &_nativenet_rx_buffer[rx_buffer_next].data;
|
||||
|
||||
/* notify transceiver thread if any */
|
||||
if (_native_net_tpid) {
|
||||
|
Loading…
Reference in New Issue
Block a user