[color] enable insta trim on all views (#347)

* [color] enable insta trim on all views

Resolves #342

* Removed warning for colorlcd
This commit is contained in:
Raphael Coeffic
2021-06-27 12:28:42 +02:00
committed by GitHub
parent 1dafc3aacc
commit adde1160b4
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -178,9 +178,6 @@ void evalFunctions(const CustomFunctionData * functions, CustomFunctionsContext
case FUNC_INSTANT_TRIM:
newActiveFunctions |= (1u << FUNCTION_INSTANT_TRIM);
if (!isFunctionActive(FUNCTION_INSTANT_TRIM)) {
#if defined(COLORLCD)
#warning IS_INSTANT_TRIM_ALLOWED() is always false
#endif
if (IS_INSTANT_TRIM_ALLOWED()) {
instantTrim();
}
+1 -1
View File
@@ -123,7 +123,7 @@ bool isSwitch2POSWarningStateAvailable(int state);
#endif
#if defined(LIBOPENUI)
#define IS_INSTANT_TRIM_ALLOWED() false
#define IS_INSTANT_TRIM_ALLOWED() true
#elif defined(GUI)
#define IS_INSTANT_TRIM_ALLOWED() (IS_MAIN_VIEW_DISPLAYED() || IS_TELEMETRY_VIEW_DISPLAYED() || IS_OTHER_VIEW_DISPLAYED())
#else