Check SO88 to use separate DGR

This commit is contained in:
Paul C Diem 2020-11-25 16:17:18 -06:00
parent 1b437e5aad
commit 43ca3cc73a

View File

@ -1355,7 +1355,10 @@ void LightInit(void)
}
LightCalcPWMRange();
#ifdef USE_DEVICE_GROUPS
Light.device_group_index = 0;
if (Settings.flag4.multiple_device_groups) { // SetOption88 - Enable relays in separate device groups
Light.device_group_index = Light.device - 1;
}
#endif // USE_DEVICE_GROUPS
#ifdef DEBUG_LIGHT
AddLog_P(LOG_LEVEL_DEBUG_MORE, "LightInit Light.pwm_multi_channels=%d Light.subtype=%d Light.device=%d TasmotaGlobal.devices_present=%d",