Last minute bug-fix of arduino-sketch
... happens when not completing testing before pushing commit :-)
This commit is contained in:
parent
f0f5391409
commit
c5d25f5bfe
2 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue