Last minute bug-fix of arduino-sketch
... happens when not completing testing before pushing commit :-)
This commit is contained in:
parent
f0f5391409
commit
c5d25f5bfe
|
@ -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 {
|
||||
|
|
|
@ -29,7 +29,7 @@ void setup (void)
|
|||
void loop (void)
|
||||
{
|
||||
/* Use 255 - pwm, LED on merkur-board is wired to +3.3V */
|
||||
analogWrite (LED_PIN, 255 - pwm); /*
|
||||
analogWrite (LED_PIN, 255 - pwm);
|
||||
printf ("clock : %u\nmillis: %lu\n", clock_time (), millis ());
|
||||
delay (period_100ms * 100);
|
||||
analogWrite (LED_PIN, 255); /* OFF: LED on merkur-board is wired to +3.3V */
|
||||
|
|
Loading…
Reference in a new issue