diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2016-04-20 19:33:20 +1000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2016-04-20 19:33:20 +1000 |
commit | fe1c241ff7412c3e461b15592ac2a5cdae97a5eb (patch) | |
tree | fc1cfd75789e55cb1b89f171b742e8d3ff5cccd5 /Bootloaders/DFU/BootloaderDFU.c | |
parent | 7e97be22a37017aa3df9ae73b92ae6043df4e9dd (diff) | |
parent | 738ded0f028d0a91e15732248ac5d7b45ec86288 (diff) | |
download | lufa-fe1c241ff7412c3e461b15592ac2a5cdae97a5eb.tar.gz lufa-fe1c241ff7412c3e461b15592ac2a5cdae97a5eb.tar.bz2 lufa-fe1c241ff7412c3e461b15592ac2a5cdae97a5eb.zip |
Merge pull request #84 from eltang/eeprom_wear_fix
Update functions used to write to EEPROM (thanks to Eric Tang).
Diffstat (limited to 'Bootloaders/DFU/BootloaderDFU.c')
-rw-r--r-- | Bootloaders/DFU/BootloaderDFU.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 71db9802a..d43c68652 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -400,7 +400,7 @@ void EVENT_USB_Device_ControlRequest(void) } /* Read the byte from the USB interface and write to to the EEPROM */ - eeprom_write_byte((uint8_t*)StartAddr, Endpoint_Read_8()); + eeprom_update_byte((uint8_t*)StartAddr, Endpoint_Read_8()); /* Adjust counters */ StartAddr++; @@ -857,4 +857,3 @@ static void ProcessReadCommand(void) DFU_Status = errADDRESS; } } - |