mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
RGB bright fix
This commit is contained in:
@@ -1005,7 +1005,7 @@ int Item::Ctrl(short cmd, short n, int *Parameters, boolean send, int suffixCode
|
|||||||
//Vebler-Heffler law
|
//Vebler-Heffler law
|
||||||
// float x = Par[2]/25.-3.;
|
// float x = Par[2]/25.-3.;
|
||||||
// int rgbValue = round(exp(x)/(exp(1)/255));
|
// int rgbValue = round(exp(x)/(exp(1)/255));
|
||||||
int rgbValue = getBright(Par[1]);
|
int rgbValue = getBright(Par[2]);
|
||||||
|
|
||||||
switch (itemType) {
|
switch (itemType) {
|
||||||
|
|
||||||
@@ -1739,7 +1739,7 @@ switch (cause)
|
|||||||
sendDelayedStatus();
|
sendDelayedStatus();
|
||||||
return INTERVAL_CHECK_MODBUS;
|
return INTERVAL_CHECK_MODBUS;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
/* case CH_RGB: //All channels with slider generate too many updates
|
/* case CH_RGB: //All channels with slider generate too many updates
|
||||||
case CH_RGBW:
|
case CH_RGBW:
|
||||||
case CH_DIMMER:
|
case CH_DIMMER:
|
||||||
|
|||||||
Reference in New Issue
Block a user