We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4517fb8 commit 907f23fCopy full SHA for 907f23f
1 file changed
src/displayapp/screens/WatchFaceAnalog.cpp
@@ -15,8 +15,10 @@ namespace {
15
constexpr int16_t MinuteLength = 90;
16
constexpr int16_t SecondLength = 110;
17
18
+ // LVGL sine isn't constexpr (thought it could be) so fix size here
19
+ // All the types are hardcoded anyway and would need changing if the size changed
20
// sin(90) = 1 so the value of _lv_trigo_sin(90) is the scaling factor
- const auto LV_TRIG_SCALE = _lv_trigo_sin(90);
21
+ constexpr int16_t LV_TRIG_SCALE = INT16_MAX; // = _lv_trigo_sin(90)
22
23
int16_t Cosine(int16_t angle) {
24
return _lv_trigo_sin(angle + 90);
0 commit comments