mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 05:53:35 +08:00
cdcacm_autostart: handle USB power only (#23183)
This commit is contained in:
@@ -206,7 +206,8 @@ void CdcAcmAutostart::state_connecting()
|
|||||||
|
|
||||||
if (_ttyacm_fd < 0) {
|
if (_ttyacm_fd < 0) {
|
||||||
PX4_DEBUG("can't open port");
|
PX4_DEBUG("can't open port");
|
||||||
goto fail;
|
// fail silently and keep trying to open the port
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_sys_usb_auto.get() == 2) {
|
if (_sys_usb_auto.get() == 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user