mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Merge pull request #7042 from Jason2866/patch-1
Align slider behaviour with mqtt...
This commit is contained in:
commit
141377a778
@ -1056,7 +1056,7 @@ void HandleRoot(void)
|
|||||||
"s", // s - Unique HTML id related to eb('s').style.background='linear-gradient(to right,rgb('+sl+'%%,'+sl+'%%,'+sl+'%%),hsl('+eb('sl2').value+',100%%,50%%))';
|
"s", // s - Unique HTML id related to eb('s').style.background='linear-gradient(to right,rgb('+sl+'%%,'+sl+'%%,'+sl+'%%),hsl('+eb('sl2').value+',100%%,50%%))';
|
||||||
scolor, stemp, // Brightness to max current color
|
scolor, stemp, // Brightness to max current color
|
||||||
3, // sl3 - Unique range HTML id - Not used
|
3, // sl3 - Unique range HTML id - Not used
|
||||||
1, 100, // Range 1 to 100%
|
0, 100, // Range 0 to 100%
|
||||||
changeUIntScale(sat, 0, 255, 0, 100),
|
changeUIntScale(sat, 0, 255, 0, 100),
|
||||||
'n', 0); // n0 - Value id
|
'n', 0); // n0 - Value id
|
||||||
}
|
}
|
||||||
@ -1065,7 +1065,7 @@ void HandleRoot(void)
|
|||||||
"c", // c - Unique HTML id
|
"c", // c - Unique HTML id
|
||||||
"#000", "#fff", // Black to White
|
"#000", "#fff", // Black to White
|
||||||
4, // sl4 - Unique range HTML id - Used as source for Saturation begin color
|
4, // sl4 - Unique range HTML id - Used as source for Saturation begin color
|
||||||
1, 100, // Range 1 to 100%
|
0, 100, // Range 0 to 100%
|
||||||
Settings.light_dimmer,
|
Settings.light_dimmer,
|
||||||
'd', 0); // d0 - Value id is related to lc("d0", value) and WebGetArg("d0", tmp, sizeof(tmp));
|
'd', 0); // d0 - Value id is related to lc("d0", value) and WebGetArg("d0", tmp, sizeof(tmp));
|
||||||
} else { // Settings.flag3.pwm_multi_channels - SetOption68 1 - Enable multi-channels PWM instead of Color PWM
|
} else { // Settings.flag3.pwm_multi_channels - SetOption68 1 - Enable multi-channels PWM instead of Color PWM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user