From: Keith Packard Date: Thu, 1 Nov 2012 17:50:03 +0000 (-0700) Subject: altos: Remove legacy telemetry from ao_monitor when not needed X-Git-Tag: 1.1.9.2~2 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=f74d724f92b335d6c0674d0f1fcc650b729401df 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 --- 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];