mirror of https://github.com/arendst/Tasmota.git
Fix rounding issue when reading Channel value
This commit is contained in:
parent
fa826d33d9
commit
902dc6b69c
|
@ -2281,7 +2281,7 @@ void CmndChannel(void)
|
|||
light_controller.changeChannels(Light.current_color);
|
||||
coldim = true;
|
||||
}
|
||||
ResponseCmndIdxNumber(Light.current_color[XdrvMailbox.index -1] * 100 / 255);
|
||||
ResponseCmndIdxNumber(changeUIntScale(Light.current_color[XdrvMailbox.index -1],0,255,0,100));
|
||||
if (coldim) {
|
||||
LightPreparePower();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue