Skip to content

Commit

Permalink
v1.5.10
Browse files Browse the repository at this point in the history
- added supported architectures to remove warnings in Arduino IDE
  • Loading branch information
matsfunk committed Jan 16, 2022
1 parent 08cba7b commit 7000f4c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
Binary file modified dist/oocsi.zip
Binary file not shown.
18 changes: 12 additions & 6 deletions dist/oocsi/OOCSIDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,24 @@ void OOCSIDevice::addLight(const char* lightName, const char* lightChannel, cons
case 4:
case 6:
case 7:
spectrums.add("RGB");
spectrums.add("RGB");
break;
}
switch(spectrum) {
case 2:
case 4:
case 5:
case 7:
spectrums.add("CCT");
spectrums.add("CCT");
break;
}
switch(spectrum) {
case 3:
case 5:
case 6:
case 7:
spectrums.add("WHITE");
spectrums.add("WHITE");
break;
}
}

Expand All @@ -123,21 +126,24 @@ void OOCSIDevice::addLight(const char* lightName, const char* lightChannel, cons
case 4:
case 6:
case 7:
spectrums.add("RGB");
spectrums.add("RGB");
break;
}
switch(spectrum) {
case 2:
case 4:
case 5:
case 7:
spectrums.add("CCT");
spectrums.add("CCT");
break;
}
switch(spectrum) {
case 3:
case 5:
case 6:
case 7:
spectrums.add("WHITE");
spectrums.add("WHITE");
break;
}
light["max"] = miredMax;
light["min"] = miredMin;
Expand Down
6 changes: 2 additions & 4 deletions src/OOCSIDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ void OOCSIDevice::addLight(const char* lightName, const char* lightChannel, cons
case 4:
case 6:
case 7:
spectrums.add("RGB");
break;
spectrums.add("RGB");
break;
}
switch(spectrum) {
case 2:
Expand All @@ -108,7 +108,6 @@ void OOCSIDevice::addLight(const char* lightName, const char* lightChannel, cons
case 7:
spectrums.add("WHITE");
break;

}
}

Expand Down Expand Up @@ -146,7 +145,6 @@ void OOCSIDevice::addLight(const char* lightName, const char* lightChannel, cons
spectrums.add("WHITE");
break;
}

light["max"] = miredMax;
light["min"] = miredMin;
}
Expand Down

0 comments on commit 7000f4c

Please sign in to comment.