From a02039edea3d4a54322817fa41870b0d333990d2 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 16 Jan 2023 14:59:05 +0100 Subject: [PATCH] bnep_lwip: return bool in bnep_lwip_outgoing_packets_empty --- platform/lwip/bnep_lwip.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/lwip/bnep_lwip.c b/platform/lwip/bnep_lwip.c index fc167ae46..5df479c68 100644 --- a/platform/lwip/bnep_lwip.c +++ b/platform/lwip/bnep_lwip.c @@ -53,6 +53,8 @@ #include "lwip/prot/dhcp.h" #include "netif/etharp.h" +#include "btstack_bool.h" + #if LWIP_IPV6 #include "lwip/ethip6.h" #endif @@ -80,7 +82,7 @@ #define LWIP_TIMER_INTERVAL_MS 25 static void bnep_lwip_outgoing_process(void * arg); -static int bnep_lwip_outgoing_packets_empty(void); +static bool bnep_lwip_outgoing_packets_empty(void); // lwip data static struct netif btstack_netif; @@ -153,9 +155,9 @@ static struct pbuf * bnep_lwip_outgoing_pop_packet(void){ return p; } -static int bnep_lwip_outgoing_packets_empty(void){ +static bool bnep_lwip_outgoing_packets_empty(void){ #if NO_SYS - return btstack_ring_buffer_empty(&bnep_lwip_outgoing_queue); + return btstack_ring_buffer_empty(&bnep_lwip_outgoing_queue) != 0; #else return uxQueueMessagesWaiting(bnep_lwip_outgoing_queue) == 0; #endif