Skip to content

Commit

Permalink
AP_ICEngine: fix send_text severities
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlong13 authored and Pradeep-Carbonix committed Nov 7, 2024
1 parent 30d114b commit f694774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_ICEngine/AP_ICEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void AP_ICEngine::update(void)
state = ICE_STARTING;
crank_retry_ct++;
} else {
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Engine max crank attempts reached");
GCS_SEND_TEXT(MAV_SEVERITY_CRITICAL, "Engine max crank attempts reached");
// Mark the last run now so we don't send this message every loop
starter_last_run_ms = now;
}
Expand Down Expand Up @@ -360,7 +360,7 @@ void AP_ICEngine::update(void)
rpm_value < rpm_threshold) {
// engine has stopped when it should be running
state = ICE_START_DELAY;
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Uncommanded engine stop");
GCS_SEND_TEXT(MAV_SEVERITY_CRITICAL, "Uncommanded engine stop");
if (last_uncommanded_stop_ms != 0 &&
now - last_uncommanded_stop_ms > 3*(starter_time + starter_delay)*1000) {
// if it has been a long enough time since the last uncommanded stop
Expand Down

0 comments on commit f694774

Please sign in to comment.