mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-05 17:07:42 +00:00
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…
x
Reference in New Issue
Block a user