From 7f383facac2977d1ade711aeb4a77687a3ce435f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 3 Dec 2014 20:14:26 +1100 Subject: [PATCH] Plane: re-enable CLI on non-APM1/APM2 boards --- ArduPlane/config.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ArduPlane/config.h b/ArduPlane/config.h index 523db3c1eb..9c86216098 100644 --- a/ArduPlane/config.h +++ b/ArduPlane/config.h @@ -458,12 +458,14 @@ #endif // use this to completely disable the CLI. We now default the CLI to -// off as it really is no longer needed except for special developer -// testing. This also allows us to keep supporting the APM2 for a bit -// longer, as it saves us 20k of flash +// off on smaller boards. #ifndef CLI_ENABLED +#if HAL_CPU_CLASS > HAL_CPU_CLASS_16 + # define CLI_ENABLED ENABLED +#else # define CLI_ENABLED DISABLE #endif +#endif // use this to disable geo-fencing #ifndef GEOFENCE_ENABLED