From 3f9e6ddbab0f8fe770f2ad41f7ae79ee9c4fac6c Mon Sep 17 00:00:00 2001 From: Making Sound Machines Date: Fri, 5 Jul 2024 14:46:11 +0200 Subject: Disables Merge Playback, adds Disable Autosave flag (off by default) Cleaned up build files to adhere to this naming convention - plink0A3.bin plink0A3.uf2 so one can match the versions. Deleted some extra build files to the root - deleted CURRENT.uf2 (which could be any version) deleted plinkyblack.bin (which can't be flashed on its own) Plinky V0.A3.zip (different naming convention) -> took CURRENT.UF2 from the zip and renamed it plink0A3.uf2 Disabled MERGE_PLAYBACK in touch.h Added a define DISABLE_AUTOSAVE. It's commented out by default. It enables Superbooth Demo Mode: changes are not written to flash, a reboot restores the device completely. Disables ProgramPage() in params.h. Added version descriptions in config.h --- sw/Core/Src/params.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sw/Core/Src/params.h') diff --git a/sw/Core/Src/params.h b/sw/Core/Src/params.h index c3cb507..532eac7 100755 --- a/sw/Core/Src/params.h +++ b/sw/Core/Src/params.h @@ -754,6 +754,7 @@ u8 AllocAndEraseFlashPage(void) { void ProgramPage(void* datasrc, u32 datasize, u8 index) { +#ifndef DISABLE_AUTOSAVE #ifndef HALF_FLASH updating_bank2 = 1; @@ -772,6 +773,7 @@ void ProgramPage(void* datasrc, u32 datasize, u8 index) { latestpagesidx[index] = page; updating_bank2 = 0; #endif +#endif } void SetPreset(u8 preset, bool force) { -- cgit v1.2.3