mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Mission: Add is_valid_index() function
This commit is contained in:
parent
0567d8576e
commit
a29cd0321b
@ -724,6 +724,8 @@ public:
|
||||
// Returns 0 if no appropriate JUMP_TAG match can be found.
|
||||
uint16_t get_index_of_jump_tag(const uint16_t tag) const;
|
||||
|
||||
bool is_valid_index(const uint16_t index) const { return index < _cmd_total; }
|
||||
|
||||
#if AP_SDCARD_STORAGE_ENABLED
|
||||
bool failed_sdcard_storage(void) const {
|
||||
return _failed_sdcard_storage;
|
||||
|
Loading…
Reference in New Issue
Block a user