File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1067,6 +1067,11 @@ void MixingOutput::handleCommands()
1067
1067
1068
1068
void MixingOutput::resetMixerThreadSafe ()
1069
1069
{
1070
+ if (_use_dynamic_mixing) {
1071
+ PX4_ERR (" mixer reset unavailable, not using static mixers" );
1072
+ return ;
1073
+ }
1074
+
1070
1075
if ((Command::Type)_command.command .load () != Command::Type::None) {
1071
1076
// Cannot happen, because we expect only one other thread to call this.
1072
1077
// But as a safety precaution we return here.
@@ -1091,6 +1096,11 @@ void MixingOutput::resetMixerThreadSafe()
1091
1096
1092
1097
int MixingOutput::loadMixerThreadSafe (const char *buf, unsigned len)
1093
1098
{
1099
+ if (_use_dynamic_mixing) {
1100
+ PX4_ERR (" mixer load unavailable, not using static mixers" );
1101
+ return -1 ;
1102
+ }
1103
+
1094
1104
if ((Command::Type)_command.command .load () != Command::Type::None) {
1095
1105
// Cannot happen, because we expect only one other thread to call this.
1096
1106
// But as a safety precaution we return here.
You can’t perform that action at this time.
0 commit comments