PWM out: Ensure correct loading on single-bank targets

This commit is contained in:
Lorenz Meier
2021-03-17 21:53:18 +01:00
parent 9490c64ad4
commit d35ce21594
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -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) {