From 728553c072f8bcfd9592a97f95a36f50ea794132 Mon Sep 17 00:00:00 2001 From: locker98 Date: Wed, 15 May 2024 12:04:58 -0400 Subject: [PATCH] fixes some erros in binary --- src/displayapp/UserApps.h | 1 + src/displayapp/screens/WatchFaceBinary.h | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/displayapp/UserApps.h b/src/displayapp/UserApps.h index c7a719d8..113f5b64 100644 --- a/src/displayapp/UserApps.h +++ b/src/displayapp/UserApps.h @@ -11,6 +11,7 @@ #include "displayapp/screens/ApplicationList.h" #include "displayapp/screens/WatchFaceDigital.h" #include "displayapp/screens/WatchFaceAnalog.h" +#include "displayapp/screens/WatchFaceBinary.h" #include "displayapp/screens/WatchFaceCasioStyleG7710.h" #include "displayapp/screens/WatchFaceInfineat.h" #include "displayapp/screens/WatchFacePineTimeStyle.h" diff --git a/src/displayapp/screens/WatchFaceBinary.h b/src/displayapp/screens/WatchFaceBinary.h index a872815d..4f4f8736 100644 --- a/src/displayapp/screens/WatchFaceBinary.h +++ b/src/displayapp/screens/WatchFaceBinary.h @@ -84,5 +84,25 @@ namespace Pinetime { Widgets::StatusIcons statusIcons; }; } + + template <> + struct WatchFaceTraits { + static constexpr WatchFace watchFace = WatchFace::Binary; + static constexpr const char* name = "Binary face"; + + static Screens::Screen* Create(AppControllers& controllers) { + return new Screens::WatchFaceBinary(controllers.dateTimeController, + controllers.batteryController, + controllers.bleController, + controllers.notificationManager, + controllers.settingsController, + controllers.heartRateController, + controllers.motionController); + }; + + static bool IsAvailable(Pinetime::Controllers::FS& filesystem) { + return true; + } + }; } }