Last minute bug-fix of arduino-sketch

... happens when not completing testing before pushing commit :-)
This commit is contained in:
Ralf Schlatterbeck 2014-06-26 19:07:48 +02:00
parent f0f5391409
commit c5d25f5bfe
2 changed files with 3 additions and 2 deletions

View file

@ -139,8 +139,9 @@ led_pwm_handler
PRINTF ("GOT: %s\n", temp);
tmp = strtoul (temp, NULL, 10);
if (tmp > 255) {
pwm = 255;
tmp = 255;
}
pwm = tmp;
PRINTF ("Setting: %d\n", pwm);
REST.set_response_status(response, REST.status.CHANGED);
} else {