Decrement EECONFIG magic number 0.6.463
authorDrashna Jaelre <drashna@live.com>
Thu, 22 Aug 2019 19:11:15 +0000 (12:11 -0700)
committerskullydazed <skullydazed@users.noreply.github.com>
Wed, 28 Aug 2019 03:32:36 +0000 (20:32 -0700)
This will manually wipe the EEPROM. This is a hacky solution for when new ranges are added or moved around.

A better (more complicated) solution would be to zero out everything, not just known ranges.  But for now, this is a hacky solution that will work.

tmk_core/common/eeconfig.h

index 0d5c6a8..a5fc801 100644 (file)
@@ -22,7 +22,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include <stdbool.h>
 
 
-#define EECONFIG_MAGIC_NUMBER                       (uint16_t)0xFEED
+#ifndef EECONFIG_MAGIC_NUMBER
+#     define EECONFIG_MAGIC_NUMBER                       (uint16_t)0xFEEC
+#endif
 #define EECONFIG_MAGIC_NUMBER_OFF                   (uint16_t)0xFFFF
 
 /* EEPROM parameter address */