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 (#23183)
This commit is contained in:
parent
ccbcbbe268
commit
da35c4adce
@ -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