| 1234567891011121314151617 |
- #include <MiLightRadioConfig.h>
- MiLightRadioConfig* MiLightRadioConfig::fromString(const String& s) {
- if (s.equalsIgnoreCase("rgbw")) {
- return &MilightRgbwConfig;
- } else if (s.equalsIgnoreCase("cct")) {
- return &MilightCctConfig;
- } else if (s.equalsIgnoreCase("rgb_cct")) {
- return &MilightRgbCctConfig;
- }
-
- return NULL;
- }
- size_t MiLightRadioConfig::getPacketLength() const {
- return packetFormatter->getPacketLength();
- }
|