fix(color): UI freeze when setting up 'Set' special function with no timers configured (#6377)
This commit is contained in:
@@ -693,6 +693,15 @@ bool isAssignableFunctionAvailable(int function)
|
||||
}
|
||||
#endif
|
||||
|
||||
int timersSetupCount()
|
||||
{
|
||||
int tc = 0;
|
||||
for (int i = 0; i < MAX_TIMERS; i += 1)
|
||||
if (isTimerSourceAvailable(i))
|
||||
tc += 1;
|
||||
return tc;
|
||||
}
|
||||
|
||||
bool isTimerSourceAvailable(int index)
|
||||
{
|
||||
TimerData *timer = &g_model.timers[index];
|
||||
|
||||
Reference in New Issue
Block a user