From 677fc1875b68d7122474c0a6d70dc1bb830c1027 Mon Sep 17 00:00:00 2001 From: night-ghost Date: Fri, 6 Apr 2018 11:55:02 +0500 Subject: [PATCH] HAL_F4Light: some modes disabled by default --- libraries/AP_HAL/board/f4light.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libraries/AP_HAL/board/f4light.h b/libraries/AP_HAL/board/f4light.h index 602ca7e2fc..07fb91f128 100644 --- a/libraries/AP_HAL/board/f4light.h +++ b/libraries/AP_HAL/board/f4light.h @@ -52,7 +52,7 @@ #define TOSHIBA_LED_I2C_BUS 2 // external I2C - #define HAL_MINIMIZE_FEATURES 1 +#define HAL_MINIMIZE_FEATURES 1 #define AC_TERRAIN DISABLED // no SD card with POSIX IO #define PRECISION_LANDING DISABLED @@ -71,7 +71,13 @@ // #define MOUNT DISABLED // #define ADSB_ENABLED DISABLED + #define LOGGING_ENABLED ENABLED -#define LOGGING_ENABLED ENABLED - + // exclude some useless modes + #define MODE_SPORT_ENABLED DISABLE + #define MODE_DRIFT_ENABLED DISABLE + #define MODE_BRAKE_ENABLED DISABLE + #define MODE_GUIDED_NOGPS_ENABLED DISABLE + + #define STATS_ENABLED DISABLED // to reduce flash degradation