mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-13 07:57:56 +08:00
Harden autostart logic for non-existent airframe values
This ensures that the user is pushed back to the airframe configuration stage.
This commit is contained in:
@@ -78,6 +78,8 @@ class RCOutput():
|
||||
result += "else\n"
|
||||
result += "\techo \"ERROR [init] No file matches SYS_AUTOSTART value found in : /etc/init.d/airframes\"\n"
|
||||
result += "\techo \"ERROR [init] No file matches SYS_AUTOSTART value found in : /etc/init.d/airframes\" >> $LOG_FILE\n"
|
||||
# Reset the configuration
|
||||
result += "\tparam set SYS_AUTOSTART 0\n"
|
||||
result += "\ttone_alarm ${TUNE_ERR}\n"
|
||||
result += "fi\n"
|
||||
result += "unset AIRFRAME"
|
||||
|
||||
Reference in New Issue
Block a user