ColorMusic icon indicating copy to clipboard operation
ColorMusic copied to clipboard

EEPROM update fix

Open x3mEr opened this issue 4 years ago • 0 comments

  1. Update this_mode in EEPROM after changing it by the button on D3 pin through eeprom_flag and eeprom_timer.
  2. Despite define KEEP_SETTINGS 0, EEPROM was updated from procedure loop().
  3. Variables eeprom_flag and eeprom_timer were not defined. With no remote controls (#if REMOTE_TYPE != 0) they remained undefined.

  1. Теперь в EEPROM обновляется this_mode и после нажатия кнопки на пине D3 (раньше записывались только изменения, сделанные с пультов). Реализовано через переменные eeprom_flag и eeprom_timer (как это сделано для пультов).
  2. Несмотря на define KEEP_SETTINGS 0, EEPROM обновлялся из цикла loop().
  3. Переменные eeprom_flag и eeprom_timer были не определены. Без пультов (#if REMOTE_TYPE != 0) они так и оставались неопределёнными.

x3mEr avatar Jun 18 '20 00:06 x3mEr