diff options
author | Drashna Jaelre <drashna@live.com> | 2019-08-22 12:11:15 -0700 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-27 20:32:36 -0700 |
commit | 931e9bdbe4ff73b26b86be42041c4553f7cdd696 (patch) | |
tree | 3aeb7ef08ef1454d11723db5879375b21f96b932 /tmk_core/common/eeconfig.h | |
parent | 5ef7367e6c9adbaab3d91a52ad0fccace1c4b34f (diff) | |
download | qmk_firmware-931e9bdbe4ff73b26b86be42041c4553f7cdd696.tar.gz qmk_firmware-931e9bdbe4ff73b26b86be42041c4553f7cdd696.zip |
Decrement EECONFIG magic number
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.
Diffstat (limited to 'tmk_core/common/eeconfig.h')
-rw-r--r-- | tmk_core/common/eeconfig.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tmk_core/common/eeconfig.h b/tmk_core/common/eeconfig.h index 0d5c6a82f..a5fc801a3 100644 --- a/tmk_core/common/eeconfig.h +++ b/tmk_core/common/eeconfig.h | |||
@@ -22,7 +22,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
22 | #include <stdbool.h> | 22 | #include <stdbool.h> |
23 | 23 | ||
24 | 24 | ||
25 | #define EECONFIG_MAGIC_NUMBER (uint16_t)0xFEED | 25 | #ifndef EECONFIG_MAGIC_NUMBER |
26 | # define EECONFIG_MAGIC_NUMBER (uint16_t)0xFEEC | ||
27 | #endif | ||
26 | #define EECONFIG_MAGIC_NUMBER_OFF (uint16_t)0xFFFF | 28 | #define EECONFIG_MAGIC_NUMBER_OFF (uint16_t)0xFFFF |
27 | 29 | ||
28 | /* EEPROM parameter address */ | 30 | /* EEPROM parameter address */ |