Skip to content

Commit 080dc64

Browse files
committed
AP_Mission: fix option_is_set
1 parent 0189c6f commit 080dc64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/AP_Mission/AP_Mission.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,9 @@ class AP_Mission
733733
disarm and mission logic should stop
734734
*/
735735
enum class Option {
736-
CLEAR_ON_BOOT = 0, // clear mission on vehicle boot
737-
FAILSAFE_TO_BEST_LANDING = 1, // on failsafe, find fastest path along mission home
738-
CONTINUE_AFTER_LAND = 2, // continue running mission (do not disarm) after land if takeoff is next waypoint
736+
CLEAR_ON_BOOT = (1U<<0), // clear mission on vehicle boot
737+
FAILSAFE_TO_BEST_LANDING = (1U<<1), // on failsafe, find fastest path along mission home
738+
CONTINUE_AFTER_LAND = (1U<<2), // continue running mission (do not disarm) after land if takeoff is next waypoint
739739
};
740740
bool option_is_set(Option option) const {
741741
return (_options.get() & (uint16_t)option) != 0;

0 commit comments

Comments
 (0)