Skip to content

Commit

Permalink
tweaked speed adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
moose4lord committed Dec 13, 2017
1 parent dcc5fc4 commit 52568c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/esp8266_webinterface/esp8266_webinterface.ino
Expand Up @@ -227,9 +227,9 @@ void srv_handle_set() {

if(server.argName(i) == "s") {
if(server.arg(i)[0] == '-') {
ws2812fx.decreaseSpeed(SPEED_STEP);
ws2812fx.setSpeed(ws2812fx.getSpeed() * 0.9);
} else {
ws2812fx.increaseSpeed(SPEED_STEP);
ws2812fx.setSpeed(ws2812fx.getSpeed() * 1.1);
}
}
}
Expand Down

0 comments on commit 52568c9

Please sign in to comment.