From 9e57c5d2178f08eaa6856d3aa587792c6ae4f474 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Tue, 17 Nov 2020 20:06:43 -0700 Subject: [PATCH] tunes: Print warning if there is a tune error --- src/lib/tunes/tunes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/tunes/tunes.cpp b/src/lib/tunes/tunes.cpp index 5896af8779..961e10ba64 100644 --- a/src/lib/tunes/tunes.cpp +++ b/src/lib/tunes/tunes.cpp @@ -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;