Fix rounding issue when reading Channel value

This commit is contained in:
Stephan Hadinger 2019-09-25 17:56:03 +02:00
parent fa826d33d9
commit 902dc6b69c
1 changed files with 1 additions and 1 deletions

View File

@ -2281,7 +2281,7 @@ void CmndChannel(void)
light_controller.changeChannels(Light.current_color); light_controller.changeChannels(Light.current_color);
coldim = true; 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) { if (coldim) {
LightPreparePower(); LightPreparePower();
} }