Skip to content

Commit

Permalink
Merge pull request #403 from dbambus/main
Browse files Browse the repository at this point in the history
Small Fixes
  • Loading branch information
dbambus committed May 2, 2024
2 parents 48f1a90 + 31be9b5 commit 429de28
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/clockWork.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1310,8 +1310,12 @@ void ClockWork::loop(struct tm &tm) {
for (uint8_t row = 0; row < usedUhrType->rowsWordMatrix(); row++) {
frontMatrix[row] = num32BitWithOnesAccordingToColumns();
}
}

if (parametersChanged) {
led.setbyFrontMatrix(Foreground, false);
led.show();
parametersChanged = false;
}
break;
}
Expand Down
1 change: 1 addition & 0 deletions include/webPageAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t *payload,
G.progInit = true;
}

parametersChanged = true;
parseColor(payload);
break;
}
Expand Down
6 changes: 5 additions & 1 deletion webpage/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,11 @@ function initWebsocket() {
function changeColor(color) {
hsb[color.index][0] = color.hue;
hsb[color.index][1] = color.saturation;
hsb[color.index][2] = color.value;
if (color.value !== 100) {
hsb[color.index][2] = color.value;
}

setColors();
sendColorData(command, nstr(1));
}

Expand Down

0 comments on commit 429de28

Please sign in to comment.