Update functions used to write to EEPROM
[pub/USBasp.git] / Bootloaders / DFU / BootloaderDFU.c
index 71db980..d43c686 100644 (file)
@@ -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;
        }
 }
-