From f74d724f92b335d6c0674d0f1fcc650b729401df Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 1 Nov 2012 10:50:03 -0700 Subject: [PATCH] altos: Remove legacy telemetry from ao_monitor when not needed For products not supporting LEGACY_MONITOR, remove the (undefined) structs from the ao_monitor union. Signed-off-by: Keith Packard --- src/core/ao.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/ao.h b/src/core/ao.h index 87e69e19..81d92e72 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -558,8 +558,10 @@ extern const char const * const ao_state_names[]; union ao_monitor { struct ao_telemetry_raw_recv raw; struct ao_telemetry_all_recv all; +#if LEGACY_MONITOR struct ao_telemetry_orig_recv orig; struct ao_telemetry_tiny_recv tiny; +#endif }; extern __xdata union ao_monitor ao_monitor_ring[AO_MONITOR_RING]; -- 2.30.2