mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 04:09:49 +03:00
49days issue fixed, thermostates, RGB/HSV mixes
This commit is contained in:
@@ -68,14 +68,18 @@ if (!item || !show) return 0;
|
||||
short cType=getChanType();
|
||||
uint8_t storageType;
|
||||
|
||||
/*
|
||||
switch (cmd.getCmd()){
|
||||
case CMD_OFF:
|
||||
cmd.Percents(0);
|
||||
break;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
debugSerial<<F("DMX ctrl: "); cmd.debugOut();
|
||||
|
||||
|
||||
if (cType==CH_DIMMER) //Single channel
|
||||
{
|
||||
DmxWrite(iaddr, cmd.getPercents255());
|
||||
@@ -95,8 +99,8 @@ if (cType==CH_DIMMER) //Single channel
|
||||
}
|
||||
|
||||
itemCmd st(storageType,CMD_VOID);
|
||||
|
||||
st.assignFrom(cmd);
|
||||
|
||||
debugSerial<<F("Assigned:");st.debugOut();
|
||||
switch (cType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user