Parameter reverse transition from LittleFS to block device

For the smooth backward transition from LittleFS to preserve parameters
This commit is contained in:
Igor Mišić
2022-10-21 13:04:49 +02:00
parent dc7f29e2ec
commit ae3d3689f2
5 changed files with 181 additions and 0 deletions
+12
View File
@@ -141,6 +141,18 @@ else
param select $PARAM_FILE
if ! param import
then
echo "Try parameter reverse transition from LittleFS"
if ! param transition
then
echo "ERROR [init] param transition"
else
echo "Successful param reverse transition. The system will reboot!"
# Wait for UART to send messages
usleep 200000
reboot
fi
echo "ERROR [init] param import failed"
set STARTUP_TUNE 2 # tune 2 = ERROR_TUNE