diff --git a/lighthub/item.cpp b/lighthub/item.cpp index bb8c5da..48e20f3 100644 --- a/lighthub/item.cpp +++ b/lighthub/item.cpp @@ -887,6 +887,11 @@ int Item::Ctrl(itemCmd cmd, char* subItem, bool allowRecursion) } if (itemType==CH_GROUP) { + if (fr<350) + { + errorSerial<type == aJson_Array && operation) { digGroup(itemArg,&cmd,subItem); diff --git a/lighthub/itemCmd.cpp b/lighthub/itemCmd.cpp index 6664114..92de961 100644 --- a/lighthub/itemCmd.cpp +++ b/lighthub/itemCmd.cpp @@ -1076,13 +1076,18 @@ char * itemCmd::toString(char * Buffer, int bufLen, int sendFlags, bool scale100 { int len; strncpy_P(Buffer, commands_P[cmd.cmdCode], bufLen); - strncat(Buffer, " ", bufLen); + //strncat(Buffer, " ", bufLen); len=strlen(Buffer); argPtr+=len; bufLen-=len; bufLen--; } - if (sendFlags & SEND_PARAMETERS) + if (isValue() && (sendFlags & SEND_PARAMETERS)) + { + strncat(Buffer, " ", bufLen); + bufLen--; + argPtr++; + switch (cmd.itemArgType) { short colorTemp; @@ -1142,6 +1147,7 @@ char * itemCmd::toString(char * Buffer, int bufLen, int sendFlags, bool scale100 default: ; } + } return Buffer; }