mirror of https://github.com/ArduPilot/ardupilot
AP_Mission: add ASSERT_STORAGE_SIZE macro
saves havin gto name the dummy variable yourself
This commit is contained in:
parent
9213eef56c
commit
b94738a864
|
@ -754,12 +754,12 @@ union PackedContent {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
assert_storage_size<PackedContent, 12> assert_storage_size_PackedContent;
|
|
||||||
|
|
||||||
/// load_cmd_from_storage - load command from storage
|
/// load_cmd_from_storage - load command from storage
|
||||||
/// true is return if successful
|
/// true is return if successful
|
||||||
bool AP_Mission::read_cmd_from_storage(uint16_t index, Mission_Command& cmd) const
|
bool AP_Mission::read_cmd_from_storage(uint16_t index, Mission_Command& cmd) const
|
||||||
{
|
{
|
||||||
|
ASSERT_STORAGE_SIZE(PackedContent, 12);
|
||||||
|
|
||||||
WITH_SEMAPHORE(_rsem);
|
WITH_SEMAPHORE(_rsem);
|
||||||
|
|
||||||
// special handling for command #0 which is home
|
// special handling for command #0 which is home
|
||||||
|
|
Loading…
Reference in New Issue