diff --git a/chipset/bcm/btstack_chipset_bcm_download_firmware.c b/chipset/bcm/btstack_chipset_bcm_download_firmware.c index 1ab78fd15..88fcc338a 100644 --- a/chipset/bcm/btstack_chipset_bcm_download_firmware.c +++ b/chipset/bcm/btstack_chipset_bcm_download_firmware.c @@ -43,7 +43,17 @@ #include #include + +#ifdef _MSC_VER +// map sleep() to Sleep() +#include "Windows.h" +unsigned int sleep(unsigned int seconds){ + _Sleep(seconds * 1000); + return 0; +} +#else #include +#endif #include "hci_dump.h" #include "btstack_chipset_bcm.h"