Skip to content

Commit

Permalink
Merge pull request #109 from FabLab-Luenen/development
Browse files Browse the repository at this point in the history
Bug-Fix
  • Loading branch information
bpohvoodoo authored Nov 21, 2020
2 parents f0fb968 + b0878e9 commit fea1711
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Arduino/McLighting/rest_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ server.on("/toggle", []() {
});

server.on("/on", []() {
if (prevmode == OFF) {
if (State.mode == OFF) {
State.mode = SET;
#if defined(ENABLE_MQTT)
snprintf(mqtt_buf, sizeof(mqtt_buf), "OK /%i", segState.mode[State.segment]);
Expand All @@ -358,7 +358,7 @@ server.on("/on", []() {
});

server.on("/off", []() {
if (State.mode == SET) {
if (State.mode == HOLD) {
State.mode = OFF;
#if defined(ENABLE_MQTT)
snprintf(mqtt_buf, sizeof(mqtt_buf), "OK /off", "");
Expand Down
2 changes: 1 addition & 1 deletion Arduino/McLighting/version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define SKETCH_VERSION "3.1.3"
#define SKETCH_VERSION "3.1.4"
4 changes: 4 additions & 0 deletions Arduino/McLighting/version_info.ino
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,8 @@
* included pull request from issue #93
* Fixed a GUI bug on reloading
* ToDo: bugfixes regarding issue #70
*
* 21.11.2020
* Version Bump to 3.1.4
* Bugfix Rest-API
*/

0 comments on commit fea1711

Please sign in to comment.