mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 04:30:36 +08:00
PWM out: Ensure correct loading on single-bank targets
This commit is contained in:
@@ -1983,8 +1983,8 @@ int PWMOut::custom_command(int argc, char *argv[])
|
||||
}
|
||||
|
||||
|
||||
/* start the FMU if not running */
|
||||
if (!is_running()) {
|
||||
/* start pwm_out if not running */
|
||||
if (_objects[0].load() == nullptr) {
|
||||
int ret = PWMOut::task_spawn(argc, argv);
|
||||
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user