mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 17:37:34 +08:00
Clarify comment
This commit is contained in:
committed by
Daniel Agar
parent
ced201bdb5
commit
47355333ad
@@ -2349,12 +2349,11 @@ Commander::run()
|
||||
|
||||
case PrearmedMode::SAFETY_BUTTON:
|
||||
if (safety.safety_switch_available) {
|
||||
|
||||
/* safety is off, go into prearmed */
|
||||
/* safety switch is present, go into prearmed if safety is off */
|
||||
armed.prearmed = safety.safety_off;
|
||||
|
||||
} else {
|
||||
/* safety is not present, do not go into prearmed */
|
||||
/* safety switch is not present, do not go into prearmed */
|
||||
armed.prearmed = false;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user