From a91c8b1b04bcd313978d18c2a71fd084dd180824 Mon Sep 17 00:00:00 2001 From: Todd Fleming Date: Wed, 18 Jan 2017 13:51:47 -0500 Subject: [PATCH] flash: only write when something changed --- grbl-lpc/flash.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grbl-lpc/flash.cpp b/grbl-lpc/flash.cpp index 0355d04..a42b843 100644 --- a/grbl-lpc/flash.cpp +++ b/grbl-lpc/flash.cpp @@ -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,