Chris Mullins лет назад: 8
Родитель
Сommit
97957a5f66
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      lib/MiLight/MiLightRemoteConfig.cpp

+ 5 - 1
lib/MiLight/MiLightRemoteConfig.cpp

@@ -9,7 +9,7 @@ const MiLightRemoteConfig* MiLightRemoteConfig::ALL_REMOTES[] = {
 };
 
 const MiLightRemoteConfig* MiLightRemoteConfig::fromType(const String& type) {
-  if (type.equalsIgnoreCase("rgb") || type.equalsIgnoreCase("fut096")) {
+  if (type.equalsIgnoreCase("rgbw") || type.equalsIgnoreCase("fut096")) {
     return &FUT096Config;
   }
 
@@ -25,6 +25,10 @@ const MiLightRemoteConfig* MiLightRemoteConfig::fromType(const String& type) {
     return &FUT089Config;
   }
 
+  if (type.equalsIgnoreCase("rgb") || type.equalsIgnoreCase("fut098")) {
+    return &FUT098Config;
+  }
+
   return NULL;
 }