flash: only write when something changed

This commit is contained in:
Todd Fleming 2017-01-18 13:51:47 -05:00
parent c66e549633
commit a91c8b1b04

View File

@ -35,6 +35,8 @@ void eeprom_init()
void eeprom_commit()
{
if (!memcmp(flash_buffer, flash_memory, flash_size))
return;
unsigned prepCommand[5] = {
50,
flash_sector,