mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 06:33:33 +08:00
cdcacm_autostart: handle USB power only
This commit is contained in:
committed by
David Sidrane
parent
f3787708d7
commit
061373f45b
@@ -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