diff --git a/src/Config.cpp b/src/Config.cpp index 745339e..3338e9e 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -51,7 +51,11 @@ namespace config { void setup() { details::read(); - //details::write(); + + if(strcasecmp_P(value.version, PSTR(VERSION))) { + strcpy_P(value.version, PSTR(VERSION)); + details::write(); + } } void save() { diff --git a/src/config/System.h b/src/config/System.h index a8ec933..6ba7ba9 100644 --- a/src/config/System.h +++ b/src/config/System.h @@ -20,7 +20,7 @@ \def VERSION Version string, only used for indicative purpose */ -#define VERSION "1.20" +#define VERSION "1.21" /**