mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
bl: use new USB "cable connected" API to halt in BL
BL only cares about the physical cable being connected. Use the newly provided API that matches this intent.
This commit is contained in:
parent
dab400c80d
commit
e063bb0490
@ -74,7 +74,7 @@ int main() {
|
|||||||
PIOS_Board_Init();
|
PIOS_Board_Init();
|
||||||
PIOS_IAP_Init();
|
PIOS_IAP_Init();
|
||||||
|
|
||||||
USB_connected = PIOS_USB_CheckAvailable(0);
|
USB_connected = PIOS_USB_CableConnected(0);
|
||||||
|
|
||||||
if (PIOS_IAP_CheckRequest() == TRUE) {
|
if (PIOS_IAP_CheckRequest() == TRUE) {
|
||||||
PIOS_DELAY_WaitmS(1000);
|
PIOS_DELAY_WaitmS(1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user