Commander: Indicate error number on failure

This commit is contained in:
Lorenz Meier
2016-01-31 14:53:54 +01:00
parent 260b77dd78
commit 069471a62c

View File

@@ -199,7 +199,7 @@ static bool accelerometerCheck(int mavlink_fd, unsigned instance, bool optional,
if (ret != OK) {
if (report_fail) {
mavlink_and_console_log_critical(mavlink_fd,
"PREFLIGHT FAIL: ACCEL #%u SELFTEST FAILED", instance);
"PREFLIGHT FAIL: ACCEL #%u TEST FAILED: %d", instance, ret);
}
success = false;
goto out;