mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-09-22 19:46:53 +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) {
|
||||
PX4_DEBUG("can't open port");
|
||||
goto fail;
|
||||
// fail silently and keep trying to open the port
|
||||
return;
|
||||
}
|
||||
|
||||
if (_sys_usb_auto.get() == 2) {
|
||||
|
||||
Reference in New Issue
Block a user