mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 13:20:39 +00:00
bcm: fix compile for windows
This commit is contained in:
parent
5ea446fa57
commit
9ed5a9efe4
@ -58,6 +58,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static int send_download_command;
|
static int send_download_command;
|
||||||
static uint32_t init_script_offset;
|
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);
|
close(hcd_fd);
|
||||||
|
|
||||||
// wait for firmware patch to be applied - shorter delay possible
|
// wait for firmware patch to be applied - shorter delay possible
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(1000);
|
||||||
|
#else
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
#endif
|
||||||
return BTSTACK_CHIPSET_DONE;
|
return BTSTACK_CHIPSET_DONE;
|
||||||
}
|
}
|
||||||
if (res < 0){
|
if (res < 0){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user