Fix mixer testing setup

This commit is contained in:
Lorenz Meier
2016-04-17 18:53:50 +02:00
parent 74db7bdf84
commit 20a59b8886
3 changed files with 29 additions and 4 deletions
+3 -3
View File
@@ -402,7 +402,7 @@ int test_mixer(int argc, char *argv[])
filename = argv[2];
} else {
filename = "/etc/mixers/quad_w.main.mix";
filename = "/etc/mixers/quad_test.mix";
}
load_mixer_file(filename, &buf[0], sizeof(buf));
@@ -414,8 +414,8 @@ int test_mixer(int argc, char *argv[])
mixer_group.load_from_buf(&buf[0], mc_loaded);
PX4_INFO("complete buffer load: loaded %u mixers", mixer_group.count());
if (mixer_group.count() != 3) {
PX4_ERR("FAIL: Quad W mixer load failed");
if (mixer_group.count() != 5) {
PX4_ERR("FAIL: Quad test mixer load failed");
return 1;
}