mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Mingw has not sleep(), uses WinAPI Sleep().
This commit is contained in:
@@ -294,7 +294,11 @@ struct usb_dev_handle* LibUsb::OpenFortius()
|
||||
// Given this is only required /the first time/ the Fortius
|
||||
// is connected, it can't be that bad?
|
||||
if (programmed == true) {
|
||||
#ifdef WIN32
|
||||
Sleep(3000); // windows sleep is in milliseconds
|
||||
#else
|
||||
sleep(3); // do not be tempted to reduce this, it really does take that long!
|
||||
#endif
|
||||
usb_find_busses();
|
||||
usb_find_devices();
|
||||
}
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
|
||||
#if defined GC_HAVE_LIBUSB
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <usb.h> // for the constants etc
|
||||
|
||||
// EZ-USB firmware loader for Fortius
|
||||
|
||||
Reference in New Issue
Block a user