From b72916da02b128e5244d4de53fd1468f3b595abe Mon Sep 17 00:00:00 2001 From: elehobica Date: Thu, 6 Jun 2024 04:55:39 +0000 Subject: [PATCH] revise CHANGELOG etc for Release 0.9.5 --- CHANGELOG.md | 4 +++- lib/pico_flash_param | 2 +- src/ConfigParam.h | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98e8197..65958c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] + +## [v0.9.5] - 2024-06-06 ### Added * Add support of Waveshare RP2040-LCD-0.96 board * Support tag information by ID3v2 tag (RIFF ID3v2) as higher priority than that by LIST chunk @@ -12,7 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). * Add button layout configurations for natural button assignment in FileView and Config mode when buttons are horizontally placed ### Changed * Replace transistor with MOS-FET in battery operation circuit (Q2) thanks to conditional pullup -* Self-check if active battery check circuit is populated, not by USE_ACTIVE_BATTERY_CHECK macro definition +* Self-configure by checking if active battery check circuit is populated, not define USE_ACTIVE_BATTERY_CHECK macro * Use submodule for pico_flash_param library ### Fixed * Add workaround for mount fail case of Samsung PRO Plus card diff --git a/lib/pico_flash_param b/lib/pico_flash_param index a7e0cd3..1ae482d 160000 --- a/lib/pico_flash_param +++ b/lib/pico_flash_param @@ -1 +1 @@ -Subproject commit a7e0cd31c180454ac3757cdef8d880f91773f746 +Subproject commit 1ae482dad092e82f9945766de8554c40cc976437 diff --git a/src/ConfigParam.h b/src/ConfigParam.h index 3b5a355..25a0632 100644 --- a/src/ConfigParam.h +++ b/src/ConfigParam.h @@ -56,7 +56,7 @@ struct ConfigParam : FlashParamNs::FlashParam { return instance; } // Parameter inst id name default size - FlashParamNs::Parameter P_CFG_REVISION {CFG_REVISION, "CFG_REVISION", "0.9.4", 8}; + FlashParamNs::Parameter P_CFG_REVISION {CFG_REVISION, "CFG_REVISION", "0.9.5", 8}; FlashParamNs::Parameter P_CFG_SEED {CFG_SEED, "CFG_SEED", 0}; FlashParamNs::Parameter P_CFG_VOLUME {CFG_VOLUME, "CFG_VOLUME", 65}; FlashParamNs::Parameter P_CFG_STACK_COUNT {CFG_STACK_COUNT, "CFG_STACK_COUNT", 0}; @@ -89,4 +89,9 @@ struct ConfigParam : FlashParamNs::FlashParam { FlashParamNs::Parameter P_CFG_MENU_IDX_PLAY_TIME_TO_NEXT_PLAY {CFG_MENU_IDX_PLAY_TIME_TO_NEXT_PLAY, "CFG_MENU_IDX_PLAY_TIME_TO_NEXT_PLAY", 2}; FlashParamNs::Parameter P_CFG_MENU_IDX_PLAY_NEXT_PLAY_ALBUM {CFG_MENU_IDX_PLAY_NEXT_PLAY_ALBUM, "CFG_MENU_IDX_PLAY_NEXT_PLAY_ALBUM", 1}; FlashParamNs::Parameter P_CFG_MENU_IDX_PLAY_RANDOM_DIR_DEPTH {CFG_MENU_IDX_PLAY_RANDOM_DIR_DEPTH, "CFG_MENU_IDX_PLAY_RANDOM_DIR_DEPTH", 1}; + + void initialize(bool preserveStoreCount = false) override { + FlashParamNs::FlashParam::initialize(); + P_CFG_REVISION.setDefault(); + } };