Browse Source

tunes: Print warning if there is a tune error

v1.13.0-BW
Alex Mikhalev 4 years ago committed by Daniel Agar
parent
commit
9e57c5d217
  1. 4
      src/lib/tunes/tunes.cpp

4
src/lib/tunes/tunes.cpp

@ -396,6 +396,10 @@ Tunes::Status Tunes::tune_error() @@ -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;

Loading…
Cancel
Save