Explorar o código

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.
Drashna Jaelre %!s(int64=5) %!d(string=hai) anos
pai
achega
931e9bdbe4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tmk_core/common/eeconfig.h

+ 3 - 1
tmk_core/common/eeconfig.h

@@ -22,7 +22,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include <stdbool.h>
 #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
 #define EECONFIG_MAGIC_NUMBER_OFF                   (uint16_t)0xFFFF
 
 
 /* EEPROM parameter address */
 /* EEPROM parameter address */