Smooth DMX fadind for DUE

This commit is contained in:
2020-01-19 23:59:05 +03:00
parent 75b08441f7
commit 24bf7316a9
8 changed files with 102 additions and 8 deletions

View File

@@ -189,7 +189,7 @@ Item::Item(char *name) //Constructor
{ char* sub;
if (sub=strchr(name,'/'))
{
char buf [MQTT_SUBJECT_LENGTH];
char buf [MQTT_SUBJECT_LENGTH+1];
short i;
for(i=0;(name[i] && (name[i]!='/') && (i<MQTT_SUBJECT_LENGTH));i++)
buf[i]=name[i];