From e9b2c48bb2f317b76eaada81fc4b085017d99d35 Mon Sep 17 00:00:00 2001 From: mark9064 <30447455+mark9064@users.noreply.github.com> Date: Mon, 8 May 2023 01:16:50 +0100 Subject: [PATCH] G7710 boot workaround --- src/components/settings/Settings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/settings/Settings.cpp b/src/components/settings/Settings.cpp index 1ae00a2dbc..4cbd2e66b9 100644 --- a/src/components/settings/Settings.cpp +++ b/src/components/settings/Settings.cpp @@ -38,10 +38,15 @@ void Settings::LoadSettingsFromFile() { void Settings::SaveSettingsToFile() { lfs_file_t settingsFile; + auto prevFace = settings.watchFace; if (fs.FileOpen(&settingsFile, "/settings.dat", LFS_O_WRONLY | LFS_O_CREAT) != LFS_ERR_OK) { return; } + if (prevFace == Pinetime::Applications::WatchFace::CasioStyleG7710) { + settings.watchFace = Pinetime::Applications::WatchFace::Digital; + } fs.FileWrite(&settingsFile, reinterpret_cast(&settings), sizeof(settings)); fs.FileClose(&settingsFile); + settings.watchFace = prevFace; }