From 82961568b829b80d9e12b4ebc764f4ebdbad116d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Fri, 22 Sep 2017 00:33:03 +0200 Subject: [PATCH] increased sysconbf allocated flash size (safe now bc we alrady have a breaking change that wipes old settings) --- user/persist.h | 2 +- user/syscfg.c | 3 +++ user/syscfg.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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 {