increased sysconbf allocated flash size (safe now bc we alrady have a breaking change that wipes old settings)

http-comm
Ondřej Hruška 7 years ago
parent 3849e161e5
commit 82961568b8
  1. 2
      user/persist.h
  2. 3
      user/syscfg.c
  3. 2
      user/syscfg.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

@ -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;
}

@ -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 {

Loading…
Cancel
Save