From 9ed5a9efe44a46dcde9054b30d433589dcf2490a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 2 Dec 2016 17:18:36 +0100 Subject: [PATCH] bcm: fix compile for windows --- chipset/bcm/btstack_chipset_bcm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chipset/bcm/btstack_chipset_bcm.c b/chipset/bcm/btstack_chipset_bcm.c index 6a8c06d0c..e1c8edd68 100644 --- a/chipset/bcm/btstack_chipset_bcm.c +++ b/chipset/bcm/btstack_chipset_bcm.c @@ -58,6 +58,10 @@ #include #endif +#ifdef _WIN32 +#include +#endif + static int send_download_command; static uint32_t init_script_offset; @@ -134,8 +138,11 @@ static btstack_chipset_result_t chipset_next_command(uint8_t * hci_cmd_buffer){ close(hcd_fd); // wait for firmware patch to be applied - shorter delay possible +#ifdef _WIN32 + Sleep(1000); +#else sleep(1); - +#endif return BTSTACK_CHIPSET_DONE; } if (res < 0){