From 6c6cd9488d0c6f7723b08853ff4ac7ce91e70098 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Mon, 5 Jun 2023 16:41:59 +1000 Subject: [PATCH] Add updates section for 202306-dev --- speeduino/updates.ino | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/speeduino/updates.ino b/speeduino/updates.ino index 4a658a76..96222d2a 100644 --- a/speeduino/updates.ino +++ b/speeduino/updates.ino @@ -16,7 +16,7 @@ void doUpdates(void) { - #define CURRENT_DATA_VERSION 21 + #define CURRENT_DATA_VERSION 22 //Only the latest update for small flash devices must be retained #ifndef SMALL_FLASH_MODE @@ -675,7 +675,7 @@ void doUpdates(void) 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.maeMinChange = 2; //Default is 2% minimum change to match prior behaviour. @@ -702,6 +702,14 @@ void doUpdates(void) writeAllConfig(); storeEEPROMVersion(21); } + + if(readEEPROMVersion() == 21) + { + //202306 + + writeAllConfig(); + storeEEPROMVersion(22); + } //Final check is always for 255 and 0 (Brand new arduino) if( (readEEPROMVersion() == 0) || (readEEPROMVersion() == 255) )