fixes some erros in binary

This commit is contained in:
locker98 2024-05-15 12:04:58 -04:00
parent 4e6259541f
commit 728553c072
2 changed files with 21 additions and 0 deletions

View File

@ -11,6 +11,7 @@
#include "displayapp/screens/ApplicationList.h" #include "displayapp/screens/ApplicationList.h"
#include "displayapp/screens/WatchFaceDigital.h" #include "displayapp/screens/WatchFaceDigital.h"
#include "displayapp/screens/WatchFaceAnalog.h" #include "displayapp/screens/WatchFaceAnalog.h"
#include "displayapp/screens/WatchFaceBinary.h"
#include "displayapp/screens/WatchFaceCasioStyleG7710.h" #include "displayapp/screens/WatchFaceCasioStyleG7710.h"
#include "displayapp/screens/WatchFaceInfineat.h" #include "displayapp/screens/WatchFaceInfineat.h"
#include "displayapp/screens/WatchFacePineTimeStyle.h" #include "displayapp/screens/WatchFacePineTimeStyle.h"

View File

@ -84,5 +84,25 @@ namespace Pinetime {
Widgets::StatusIcons statusIcons; Widgets::StatusIcons statusIcons;
}; };
} }
template <>
struct WatchFaceTraits<WatchFace::Binary> {
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;
}
};
} }
} }