summaryrefslogtreecommitdiff
path: root/sw/Core/Src/params.h
diff options
context:
space:
mode:
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) {