From 1dd7d7dd7b7555892ae283254a37f7bdc9ccaaf7 Mon Sep 17 00:00:00 2001 From: Nick Exton Date: Thu, 7 Sep 2023 11:26:22 +1000 Subject: [PATCH] AP_Mount: In Siyi, change severity of warnings for Data Loss and No Card --- libraries/AP_Mount/AP_Mount_Siyi.cpp | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/libraries/AP_Mount/AP_Mount_Siyi.cpp b/libraries/AP_Mount/AP_Mount_Siyi.cpp index 5bc58d5d9b..714a9cadd6 100644 --- a/libraries/AP_Mount/AP_Mount_Siyi.cpp +++ b/libraries/AP_Mount/AP_Mount_Siyi.cpp @@ -443,13 +443,24 @@ void AP_Mount_Siyi::process_packet() // Alert user if recording status changed if (prev_record_status != _config_info.record_status) { const char * msg = "?"; + MAV_SEVERITY sev = MAV_SEVERITY_INFO; switch (_config_info.record_status) { - case RecordingStatus::OFF: msg = "OFF"; break; - case RecordingStatus::ON: msg = "ON"; break; - case RecordingStatus::NO_CARD: msg = "NO CARD!"; break; - case RecordingStatus::DATA_LOSS: msg = "DATA LOSS!"; break; + case RecordingStatus::OFF: + msg = "OFF"; + break; + case RecordingStatus::ON: + msg = "ON"; + break; + case RecordingStatus::NO_CARD: + msg = "NO CARD!"; + sev = MAV_SEVERITY_WARNING; + break; + case RecordingStatus::DATA_LOSS: + msg = "DATA LOSS!"; + sev = MAV_SEVERITY_WARNING; + break; } - gcs().send_text(MAV_SEVERITY_INFO, "Siyi: recording %s", msg); + GCS_SEND_TEXT(sev, "Siyi: recording %s", msg); } debug(