mixer_module: only advertise actuator_outputs when mixer is loaded

This commit is contained in:
Beat Küng 2022-12-14 08:13:42 +01:00
parent beddb3969e
commit 985482badb

View File

@ -103,12 +103,12 @@ _param_prefix(param_prefix)
}
updateParams();
_outputs_pub.advertise();
} else {
_control_allocator_status_pub.advertise();
}
_outputs_pub.advertise();
}
MixingOutput::~MixingOutput()
@ -1239,6 +1239,7 @@ int MixingOutput::loadMixer(const char *buf, unsigned len)
_mixers->groups_required(_groups_required);
PX4_DEBUG("loaded mixers \n%s\n", buf);
_outputs_pub.advertise();
updateParams();
_interface.mixerChanged();
return ret;