Skip to content

Commit

Permalink
Merge pull request #19 from arendst/development
Browse files Browse the repository at this point in the history
Change led multiple color sep from dot to space
  • Loading branch information
ascillato committed Apr 1, 2018
2 parents cfb2d31 + 8af9452 commit d6b0680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sonoff/_releasenotes.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Add optional Timer configuration webpage to be enabled in user_config.h with define USE_TIMERS_WEB
* Add Home Assistant MQTT Discovery for Buttons and change SetOption19 response (#2277)
* Add support for SGP30 gas and air quality sensor (#2307)
* Add multiple color entry support for command Led like Led2 120000.001200.000012 setting led2 as Red, Led3 as Green and Led4 as Blue (#2303)
* Add multiple color entry support for command Led like Led2 120000 001200 000012 setting led2 as Red, Led3 as Green and Led4 as Blue (#2303)
* Change webpage parameter communication
* Change Timer parameter Device to more obvious Output
* Change max number of commands in Backlog from 15 to 30 and ignore commands overflowing
Expand Down
2 changes: 1 addition & 1 deletion sonoff/xdrv_01_light.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ boolean LightCommand()
if (XdrvMailbox.data_len > 0) {
char *p;
uint16_t idx = XdrvMailbox.index;
for (char *color = strtok_r(XdrvMailbox.data, ".", &p); color; color = strtok_r(NULL, ".", &p)) {
for (char *color = strtok_r(XdrvMailbox.data, " ", &p); color; color = strtok_r(NULL, " ", &p)) {
if (LightColorEntry(color, strlen(color))) {
Ws2812SetColor(idx, light_entry_color[0], light_entry_color[1], light_entry_color[2], light_entry_color[3]);
idx++;
Expand Down

0 comments on commit d6b0680

Please sign in to comment.