From 45e58dda4deca09f53f4b6fe7a10868144234162 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 13 Jun 2019 15:38:57 +0200 Subject: [PATCH] lwip: fix compile for NO_SYS --- platform/lwip/bnep_lwip.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/lwip/bnep_lwip.c b/platform/lwip/bnep_lwip.c index d3a6dc5d8..bb2e9a5a2 100644 --- a/platform/lwip/bnep_lwip.c +++ b/platform/lwip/bnep_lwip.c @@ -133,8 +133,7 @@ static void bnep_lwip_outgoing_reset_queue(void){ static void bnep_lwip_outgoing_queue_packet(struct pbuf *p){ #if NO_SYS // queue up - void * pointer = (void * ) p; - btstack_ring_buffer_write(&bnep_lwip_outgoing_queue, (uint8_t *) &pointer, sizeof(struct pbuf *)); + btstack_ring_buffer_write(&bnep_lwip_outgoing_queue, (uint8_t *) &p, sizeof(struct pbuf *)); #else // queue up xQueueSendToBack(bnep_lwip_outgoing_queue, &p, portMAX_DELAY); @@ -145,7 +144,7 @@ static struct pbuf * bnep_lwip_outgoing_pop_packet(void){ struct pbuf * p = NULL; #if NO_SYS uint32_t bytes_read = 0; - btstack_ring_buffer_read(&bnep_lwip_outgoing_queue, (uint8_t *) &pointer, sizeof(struct pbuf *), &bytes_read); + btstack_ring_buffer_read(&bnep_lwip_outgoing_queue, (uint8_t *) &p, sizeof(struct pbuf *), &bytes_read); (void) bytes_read; #else xQueueReceive(bnep_lwip_outgoing_queue, &p, portMAX_DELAY);