flash: only write when something changed
This commit is contained in:
parent
c66e549633
commit
a91c8b1b04
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user