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