mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-06 00:14:19 +01:00
lights: fix my92xx channel setup
This commit is contained in:
@@ -1950,7 +1950,9 @@ void lightSetup() {
|
||||
#if LIGHT_PROVIDER == LIGHT_PROVIDER_MY92XX
|
||||
|
||||
_my92xx = new my92xx(MY92XX_MODEL, MY92XX_CHIPS, MY92XX_DI_PIN, MY92XX_DCKI_PIN, MY92XX_COMMAND);
|
||||
_light_channels.resize(std::min(Light::Channels, Light::ChannelsMax));
|
||||
for (unsigned char index = 0; index < Light::Channels; ++index) {
|
||||
_light_channels.emplace_back(GPIO_NONE, getSetting({"ltMy92xxInv", index}, _lightInverse(index)));
|
||||
}
|
||||
|
||||
#elif LIGHT_PROVIDER == LIGHT_PROVIDER_DIMMER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user