cdcacm_autostart: handle USB power only

This commit is contained in:
Jacob Dahl 2024-05-24 17:17:00 -06:00 committed by David Sidrane
parent f3787708d7
commit 061373f45b

View File

@ -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) {