uORB delete unused Flavor

This commit is contained in:
Daniel Agar
2018-04-30 20:54:46 -04:00
parent cc061885f0
commit edea1b65cd
9 changed files with 95 additions and 160 deletions
@@ -131,7 +131,7 @@ int uORBTest::UnitTest::pubsublatency_main()
if (f == nullptr) {
warnx("Error opening file!\n");
delete[] timings;
return uORB::ERROR;
return PX4_ERROR;
}
for (unsigned i = 0; i < maxruns; i++) {
@@ -148,7 +148,7 @@ int uORBTest::UnitTest::pubsublatency_main()
pubsubtest_passed = true;
if (static_cast<float>(latency_integral / maxruns) > 100.0f) {
pubsubtest_res = uORB::ERROR;
pubsubtest_res = PX4_ERROR;
} else {
pubsubtest_res = PX4_OK;
@@ -825,7 +825,8 @@ int uORBTest::UnitTest::test_fail(const char *fmt, ...)
va_end(ap);
fprintf(stderr, "\n");
fflush(stderr);
return uORB::ERROR;
return PX4_ERROR;
}
int uORBTest::UnitTest::test_note(const char *fmt, ...)