tunes: Print warning if there is a tune error

This commit is contained in:
Alex Mikhalev 2020-11-17 20:06:43 -07:00 committed by Daniel Agar
parent f6cda64f0d
commit 9e57c5d217
1 changed files with 4 additions and 0 deletions

View File

@ -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;