Skip to content

Commit

Permalink
Decrement EECONFIG magic number
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
drashna authored and skullydazed committed Aug 28, 2019
1 parent 5ef7367 commit 931e9bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tmk_core/common/eeconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 931e9bd

Please sign in to comment.