mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 01:17:36 +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.).
|
||||
if (_next_tune != nullptr) {
|
||||
PX4_WARN("Tune error at: %s", _next_tune);
|
||||
}
|
||||
|
||||
_repeat = false; // Don't loop on error.
|
||||
reset(_repeat);
|
||||
return Tunes::Status::Error;
|
||||
|
||||
Reference in New Issue
Block a user