Skip to content

Commit

Permalink
cdcacm_autostart: handle USB power only
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl authored and davids5 committed Jun 7, 2024
1 parent f378770 commit 061373f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/cdcacm_autostart/cdcacm_autostart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 061373f

Please sign in to comment.