Update functions used to write to EEPROM

This commit is contained in:
Eric Tang
2016-04-19 22:28:40 -07:00
parent 7e97be22a3
commit 738ded0f02
2 changed files with 3 additions and 5 deletions
+1 -2
View 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;
}
}