Skip to content

Commit

Permalink
Fix #49 (align API with its own documentation :p)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mg committed Oct 23, 2024
1 parent a29127e commit aae1cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/wordclock/src/src/Iot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void Iot::setup()
web_server_.send(HTTP_OK, "image/svg+xml", (char *)logo_svg_start);
});

web_server_.on(UriBraces("/api/text/{}"), [this]() {
web_server_.on(UriBraces("/api/text/set/{}"), [this]() {
if (checkAPIEnabledOr403_()) {
RgbColor textColor = web_server_.arg("color") != nullptr ? Palette::stringToRgb(web_server_.arg("color").substring(0,1), display_->getColor()).at(0) : display_->getColor();
int scrollSpeed = web_server_.arg("delay") != nullptr ? web_server_.arg("delay").toInt() : 150;
Expand Down

0 comments on commit aae1cd8

Please sign in to comment.