mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
tunes: Print warning if there is a tune error
This commit is contained in:
committed by
Daniel Agar
parent
f6cda64f0d
commit
9e57c5d217
@@ -396,6 +396,10 @@ Tunes::Status Tunes::tune_error()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The tune appears to be bad (unexpected EOF, bad character, etc.).
|
// The tune appears to be bad (unexpected EOF, bad character, etc.).
|
||||||
|
if (_next_tune != nullptr) {
|
||||||
|
PX4_WARN("Tune error at: %s", _next_tune);
|
||||||
|
}
|
||||||
|
|
||||||
_repeat = false; // Don't loop on error.
|
_repeat = false; // Don't loop on error.
|
||||||
reset(_repeat);
|
reset(_repeat);
|
||||||
return Tunes::Status::Error;
|
return Tunes::Status::Error;
|
||||||
|
|||||||
Reference in New Issue
Block a user