Refactoring
This commit is contained in:
+1
-12
@@ -323,18 +323,7 @@ void evalFunctions()
|
||||
case FUNC_INSTANT_TRIM:
|
||||
newActiveFunctions |= (1 << FUNCTION_INSTANT_TRIM);
|
||||
if (!isFunctionActive(FUNCTION_INSTANT_TRIM)) {
|
||||
#if defined(GUI)
|
||||
if (menuHandlers[0] == menuMainView
|
||||
#if defined(FRSKY) && !defined(PCBFLAMENCO) && !defined(PCBHORUS)
|
||||
|| menuHandlers[0] == menuTelemetryFrsky
|
||||
#endif
|
||||
#if defined(PCBTARANIS)
|
||||
|| menuHandlers[0] == menuMainViewChannelsMonitor
|
||||
|| menuHandlers[0] == menuChannelsView
|
||||
#endif
|
||||
)
|
||||
#endif
|
||||
{
|
||||
if (IS_INSTANT_TRIM_ALLOWED()) {
|
||||
instantTrim();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user