mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-22 07:21:06 +00:00
bnep_lwip: return bool in bnep_lwip_outgoing_packets_empty
This commit is contained in:
parent
5da46df6ab
commit
a02039edea
@ -53,6 +53,8 @@
|
|||||||
#include "lwip/prot/dhcp.h"
|
#include "lwip/prot/dhcp.h"
|
||||||
#include "netif/etharp.h"
|
#include "netif/etharp.h"
|
||||||
|
|
||||||
|
#include "btstack_bool.h"
|
||||||
|
|
||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
#include "lwip/ethip6.h"
|
#include "lwip/ethip6.h"
|
||||||
#endif
|
#endif
|
||||||
@ -80,7 +82,7 @@
|
|||||||
#define LWIP_TIMER_INTERVAL_MS 25
|
#define LWIP_TIMER_INTERVAL_MS 25
|
||||||
|
|
||||||
static void bnep_lwip_outgoing_process(void * arg);
|
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
|
// lwip data
|
||||||
static struct netif btstack_netif;
|
static struct netif btstack_netif;
|
||||||
@ -153,9 +155,9 @@ static struct pbuf * bnep_lwip_outgoing_pop_packet(void){
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int bnep_lwip_outgoing_packets_empty(void){
|
static bool bnep_lwip_outgoing_packets_empty(void){
|
||||||
#if NO_SYS
|
#if NO_SYS
|
||||||
return btstack_ring_buffer_empty(&bnep_lwip_outgoing_queue);
|
return btstack_ring_buffer_empty(&bnep_lwip_outgoing_queue) != 0;
|
||||||
#else
|
#else
|
||||||
return uxQueueMessagesWaiting(bnep_lwip_outgoing_queue) == 0;
|
return uxQueueMessagesWaiting(bnep_lwip_outgoing_queue) == 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user