Skip to content

Commit

Permalink
v1.2.30
Browse files Browse the repository at this point in the history
- Fix `color-light` redundant module properties bug
  • Loading branch information
genemars committed Jul 2, 2024
1 parent fe2295d commit 695c6b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions examples/color-light/color-light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ void setup() {

// Setup main LEDs control module
mainModule = new ColorLight(IO::IOEventDomains::HomeAutomation_HomeGenie, "C1", "Main");
mainModule->module->properties.add(
new ModuleParameter(IOEventPaths::Status_Level, "0"));
mainModule->module->properties.add(
new ModuleParameter(IOEventPaths::Status_ColorHsb, "0,0,1"));
mainModule->module->properties.add(
new ModuleParameter("Widget.Preference.AudioLight", "true"));
mainModule->onSetColor([](LightColor color) {
Expand Down
2 changes: 1 addition & 1 deletion src/service/api/devices/ColorLight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace Service { namespace API { namespace devices {

// add properties
auto propStatusColorHsb = new ModuleParameter(IOEventPaths::Status_ColorHsb);
propStatusColorHsb->setValue("0,0,0,.5");
propStatusColorHsb->setValue("0,0,1,.4");
module->properties.add(propStatusColorHsb);

onSetLevel([this](float l) {
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_PATCH 29
#define VERSION_PATCH 30

#define STRING_VALUE(...) STRING_VALUE__(__VA_ARGS__)
#define STRING_VALUE__(...) #__VA_ARGS__
Expand Down

0 comments on commit 695c6b5

Please sign in to comment.