mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
GCS_MAVLink: add ASSERT_STORAGE_SIZE macro
saves havin gto name the dummy variable yourself
This commit is contained in:
parent
b0f7f84f4f
commit
cedcd190fc
@ -25,16 +25,16 @@
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
// if this assert fails then fix it and the comment in GCS.h where
|
||||
// _statustext_queue is declared
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
||||
assert_storage_size<GCS::statustext_t, 58> _assert_statustext_t_size;
|
||||
#endif
|
||||
|
||||
void GCS::get_sensor_status_flags(uint32_t &present,
|
||||
uint32_t &enabled,
|
||||
uint32_t &health)
|
||||
{
|
||||
// if this assert fails then fix it and the comment in GCS.h where
|
||||
// _statustext_queue is declared
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
||||
ASSERT_STORAGE_SIZE(GCS::statustext_t, 58);
|
||||
#endif
|
||||
|
||||
update_sensor_status_flags();
|
||||
|
||||
present = control_sensors_present;
|
||||
|
Loading…
Reference in New Issue
Block a user