diff --git a/user/persist.h b/user/persist.h index d85c964..8f6c15a 100644 --- a/user/persist.h +++ b/user/persist.h @@ -16,7 +16,7 @@ // Changing this could be used to force-erase the config area // after a firmware upgrade -#define CHECKSUM_SALT 4 +#define CHECKSUM_SALT 5 #define APPCONF_SIZE 1900 diff --git a/user/syscfg.c b/user/syscfg.c index d4b262f..cca8a5c 100644 --- a/user/syscfg.c +++ b/user/syscfg.c @@ -33,4 +33,7 @@ sysconf_restore_defaults(void) sysconf->uart_parity = PARITY_NONE; sysconf->uart_baudrate = BIT_RATE_115200; sysconf->uart_stopbits = ONE_STOP_BIT; + sysconf->config_version = SYSCONF_VERSION; + sysconf->access_pw[0] = 0; + sysconf->pwlock = PWLOCK_NONE; } diff --git a/user/syscfg.h b/user/syscfg.h index 624dfe3..e66630c 100644 --- a/user/syscfg.h +++ b/user/syscfg.h @@ -9,7 +9,7 @@ // Size designed for the wifi config structure // Must be constant to avoid corrupting user config after upgrade -#define SYSCONF_SIZE 200 +#define SYSCONF_SIZE 300 #define SYSCONF_VERSION 1 enum pwlock {