[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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user