Handle bool defaults on emulated eeprom platform platforms (fixes #5)
This commit is contained in:
parent
13e9a2c598
commit
51b5b670e6
6 changed files with 24 additions and 5 deletions
|
|
@ -140,7 +140,8 @@ void illumination_setup()
|
|||
for(int i = 0; i < PWM_NUM; i++)
|
||||
{
|
||||
EEPROM.get(pwm_values_eeprom+i*sizeof(uint16_t), pwm_values[i]);
|
||||
analogWrite(pwm_led_pins[i], pwm_values[i]);
|
||||
if (pwm_values[i] > 0)
|
||||
analogWrite(pwm_led_pins[i], pwm_values[i]);
|
||||
}
|
||||
|
||||
register_module(illumination_commands, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue