Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdc_acm_check.cpp: Fix to compile even if reset is not supported #667

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions platforms/nuttx/src/px4/common/cdc_acm_check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ static void mavlink_usb_check(void *arg)

if (param1 == 1) {
// 1: Reboot autopilot
#if defined(CONFIG_BOARDCTL_RESET)
px4_reboot_request(false, 0);
#endif

} else if (param1 == 2) {
// 2: Shutdown autopilot
Expand All @@ -226,7 +228,9 @@ static void mavlink_usb_check(void *arg)

} else if (param1 == 3) {
// 3: Reboot autopilot and keep it in the bootloader until upgraded.
#if defined(CONFIG_BOARDCTL_RESET)
px4_reboot_request(true, 0);
#endif
}
}
}
Expand Down
Loading