From 73782c41a9853379606c6e7dddb1b9b6a6ee5abe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 13 Mar 2015 22:33:05 +1100 Subject: [PATCH] DataFlash: disable CLI on APM2 --- libraries/DataFlash/DataFlash.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/DataFlash/DataFlash.h b/libraries/DataFlash/DataFlash.h index 8546e05825..252a75a103 100644 --- a/libraries/DataFlash/DataFlash.h +++ b/libraries/DataFlash/DataFlash.h @@ -21,10 +21,8 @@ #endif -#if HAL_CPU_CLASS < HAL_CPU_CLASS_75 && defined(APM_BUILD_DIRECTORY) - #if (APM_BUILD_TYPE(APM_BUILD_ArduCopter) || defined(__AVR_ATmega1280__)) - #define DATAFLASH_NO_CLI - #endif +#if HAL_CPU_CLASS < HAL_CPU_CLASS_75 +#define DATAFLASH_NO_CLI #endif class DataFlash_Class