aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/WatchFaceInfineat.cpp
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2022-10-01 21:11:05 +0200
committerJean-François Milants <jf@codingfield.com>2022-10-01 21:11:05 +0200
commitf9f8d7eeadbcc78a5a487f2dd1cb2f24888c8a57 (patch)
treec5c8bffaed56bf21ef0329e00f8e0fecfd2832c5 /src/displayapp/screens/WatchFaceInfineat.cpp
parent9bf43c380e54f67199df0e157d208cde7a3e4ade (diff)
parentd6b4ef38f6c070dc27577ae371d3b0b86d5aec3b (diff)
Merge branch 'ITCactus-watchface-casio-digital-G7710' into develop
Diffstat (limited to 'src/displayapp/screens/WatchFaceInfineat.cpp')
-rw-r--r--src/displayapp/screens/WatchFaceInfineat.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/displayapp/screens/WatchFaceInfineat.cpp b/src/displayapp/screens/WatchFaceInfineat.cpp
index e3ed1bf7..ae3f3dbb 100644
--- a/src/displayapp/screens/WatchFaceInfineat.cpp
+++ b/src/displayapp/screens/WatchFaceInfineat.cpp
@@ -27,7 +27,7 @@ WatchFaceInfineat::WatchFaceInfineat(DisplayApp* app,
Controllers::NotificationManager& notificationManager,
Controllers::Settings& settingsController,
Controllers::MotionController& motionController,
- Controllers::FS& fs)
+ Controllers::FS& filesystem)
: Screen(app),
currentDateTime {{}},
dateTimeController {dateTimeController},
@@ -37,11 +37,13 @@ WatchFaceInfineat::WatchFaceInfineat(DisplayApp* app,
settingsController {settingsController},
motionController {motionController} {
lfs_file f = {};
- if (fs.FileOpen(&f, "/fonts/teko.bin", LFS_O_RDONLY) >= 0) {
+ if (filesystem.FileOpen(&f, "/fonts/teko.bin", LFS_O_RDONLY) >= 0) {
+ filesystem.FileClose(&f);
font_teko = lv_font_load("F:/fonts/teko.bin");
}
- if (fs.FileOpen(&f, "/fonts/bebas.bin", LFS_O_RDONLY) >= 0) {
+ if (filesystem.FileOpen(&f, "/fonts/bebas.bin", LFS_O_RDONLY) >= 0) {
+ filesystem.FileClose(&f);
font_bebas = lv_font_load("F:/fonts/bebas.bin");
}