cdcacm_autostart: handle USB power only (#23183)

This commit is contained in:
Jacob Dahl 2024-05-25 17:16:34 -06:00 committed by GitHub
parent ccbcbbe268
commit da35c4adce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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