1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

LP-602 Update all bootloaders that run on STM32F4 hardware to use correct USB connected check

This commit is contained in:
Eric Price 2018-10-18 13:13:06 +02:00
parent 8793aaa387
commit 4c9b17903e
5 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ int main()
// is 2.7 volts
check_bor();
USB_connected = PIOS_USB_CheckAvailable(0);
USB_connected = PIOS_USB_CableConnected(0);
if (PIOS_IAP_CheckRequest() == true) {
PIOS_DELAY_WaitmS(1000);

View File

@ -76,7 +76,7 @@ int main()
PIOS_Board_Init();
PIOS_IAP_Init();
USB_connected = PIOS_USB_CheckAvailable(0);
USB_connected = PIOS_USB_CableConnected(0);
if (PIOS_IAP_CheckRequest() == true) {
PIOS_DELAY_WaitmS(1000);

View File

@ -82,7 +82,7 @@ int main()
// is 2.7 volts
check_bor();
USB_connected = PIOS_USB_CheckAvailable(0);
USB_connected = PIOS_USB_CableConnected(0);
if (PIOS_IAP_CheckRequest() == true) {
PIOS_DELAY_WaitmS(1000);

View File

@ -82,7 +82,7 @@ int main()
// is 2.7 volts
check_bor();
USB_connected = PIOS_USB_CheckAvailable(0);
USB_connected = PIOS_USB_CableConnected(0);
if (PIOS_IAP_CheckRequest() == true) {
PIOS_DELAY_WaitmS(1000);

View File

@ -83,7 +83,7 @@ int main()
// is 2.7 volts
check_bor();
USB_connected = PIOS_USB_CheckAvailable(0);
USB_connected = PIOS_USB_CableConnected(0);
if (PIOS_IAP_CheckRequest() == true) {
PIOS_DELAY_WaitmS(1000);