summaryrefslogtreecommitdiff
path: root/sw/Core/Src/params.h
diff options
context:
space:
mode:
authorMaking Sound Machines <roland@makingsoundmachines.com>2024-07-05 14:46:11 +0200
committerMaking Sound Machines <roland@makingsoundmachines.com>2024-07-05 14:46:11 +0200
commit3f9e6ddbab0f8fe770f2ad41f7ae79ee9c4fac6c (patch)
treedf82ab4a0790903637f055ecc1b13d2c6e8e2865 /sw/Core/Src/params.h
parent2276f86b1b19d9e07fe84c23517b7d4d3fe0ffad (diff)
downloadplinky-3f9e6ddbab0f8fe770f2ad41f7ae79ee9c4fac6c.tar.gz
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
Diffstat (limited to 'sw/Core/Src/params.h')
-rwxr-xr-xsw/Core/Src/params.h2
1 files changed, 2 insertions, 0 deletions
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) {