p += 2;
}
- writebyte_eeprom(p, &sum, threshold);
+ writebyte_eeprom(p, &sum, threshold_amcnr);
+ p++;
+ writebyte_eeprom(p, &sum, threshold_fmcnr);
+ p++;
+ writebyte_eeprom(p, &sum, threshold_width);
+ p++;
+ writebyte_eeprom(p, &sum, threshold_fmstereo);
p++;
writebyte_eeprom(p, &sum, lowboost);
p++;
p += 2;
writeword_eeprom(p, &sum, ui_idlecount);
p += 2;
+ writebyte_eeprom(p, &sum, backlight_level);
+ p += 1;
// Write checksum
eeprom_writebyte(p, sum >> 8);
fmfreq_bank[i] = readword_eeprom(p , &sum);
p += 2;
}
- threshold = readbyte_eeprom(p , &sum);
+ threshold_amcnr = readbyte_eeprom(p, &sum);
+ p++;
+ threshold_fmcnr = readbyte_eeprom(p, &sum);
+ p++;
+ threshold_width = readbyte_eeprom(p, &sum);
+ p++;
+ threshold_fmstereo = readbyte_eeprom(p, &sum);
p++;
lowboost = readbyte_eeprom(p , &sum);
p++;
p += 2;
ui_idlecount = readword_eeprom(p, &sum);
p += 2;
- // Write checksum
+ backlight_level = readbyte_eeprom(p, &sum);
+ p += 1;
+ // Write checksum
magic = (eeprom_readbyte(p) << 8) + eeprom_readbyte(p+1);
if(sum != magic) return 0x00;