fix(radio): prevent dedicated RGB LEDs flickering (#6045)

This commit is contained in:
3djc
2025-04-04 12:44:53 +10:00
committed by GitHub
parent 51b38dd4c6
commit 07ea98db4a
6 changed files with 21 additions and 14 deletions
+3
View File
@@ -672,6 +672,9 @@ bool isAssignableFunctionAvailable(int function, bool modelFunctions)
#if !defined(LED_STRIP_GPIO)
case FUNC_RGB_LED:
return false;
#elif defined(RGB_LED_OFFSET)
case FUNC_RGB_LED:
return (LED_STRIP_LENGTH > RGB_LED_OFFSET);
#endif
#if !defined(DEBUG)
case FUNC_TEST: