Add updates section for 202306-dev

This commit is contained in:
Josh Stewart 2023-06-05 16:41:59 +10:00
parent fed32686a5
commit 6c6cd9488d
1 changed files with 10 additions and 2 deletions

View File

@ -16,7 +16,7 @@
void doUpdates(void) void doUpdates(void)
{ {
#define CURRENT_DATA_VERSION 21 #define CURRENT_DATA_VERSION 22
//Only the latest update for small flash devices must be retained //Only the latest update for small flash devices must be retained
#ifndef SMALL_FLASH_MODE #ifndef SMALL_FLASH_MODE
@ -675,7 +675,7 @@ void doUpdates(void)
if(readEEPROMVersion() == 20) if(readEEPROMVersion() == 20)
{ {
//202210 //202305
configPage2.taeMinChange = 4; //Default is 2% minimum change to match prior behaviour. (4 = 2% account for 0.5 resolution) configPage2.taeMinChange = 4; //Default is 2% minimum change to match prior behaviour. (4 = 2% account for 0.5 resolution)
configPage2.maeMinChange = 2; //Default is 2% minimum change to match prior behaviour. configPage2.maeMinChange = 2; //Default is 2% minimum change to match prior behaviour.
@ -702,6 +702,14 @@ void doUpdates(void)
writeAllConfig(); writeAllConfig();
storeEEPROMVersion(21); storeEEPROMVersion(21);
} }
if(readEEPROMVersion() == 21)
{
//202306
writeAllConfig();
storeEEPROMVersion(22);
}
//Final check is always for 255 and 0 (Brand new arduino) //Final check is always for 255 and 0 (Brand new arduino)
if( (readEEPROMVersion() == 0) || (readEEPROMVersion() == 255) ) if( (readEEPROMVersion() == 0) || (readEEPROMVersion() == 255) )