From 04658cab4f6ccfc5cf81ba2ff0c964332d882c50 Mon Sep 17 00:00:00 2001 From: Michael Jakob Date: Wed, 6 Jul 2016 07:53:06 +0200 Subject: [PATCH] Adding back the third profile for targets with more than 128kB flash --- src/main/config/config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/config/config.h b/src/main/config/config.h index c26bbe6455..5a46a78c33 100644 --- a/src/main/config/config.h +++ b/src/main/config/config.h @@ -17,7 +17,11 @@ #pragma once +#if FLASH_SIZE <= 128 #define MAX_PROFILE_COUNT 2 +#else +#define MAX_PROFILE_COUNT 3 +#endif #define MAX_RATEPROFILES 3 #define ONESHOT_FEATURE_CHANGED_DELAY_ON_BOOT_MS 1500