From a5c11db084d9888e187dbe3353c85d1f14a2824f Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 18 Feb 2022 18:41:29 +0100 Subject: [PATCH] driver/storage/GD32Flash: Fix GD32Flash::commit The commit method of the GD32Flash storage driver was accidentally left empty, disabling the functionality. Call the parent's commit method to restore it. Signed-off-by: Gergely Nagy --- src/kaleidoscope/driver/storage/GD32Flash.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kaleidoscope/driver/storage/GD32Flash.h b/src/kaleidoscope/driver/storage/GD32Flash.h index 1a0ae69e..de6776e2 100644 --- a/src/kaleidoscope/driver/storage/GD32Flash.h +++ b/src/kaleidoscope/driver/storage/GD32Flash.h @@ -37,7 +37,9 @@ class GD32Flash: public EEPROMClass<_StorageProps::length> { void setup() { EEPROMClass<_StorageProps::length>::begin(); } - void commit() {} + void commit() { + EEPROMClass<_StorageProps::length>::commit(); + } }; } // namespace storage