Move static needle_colors array to member variable

This commit is contained in:
Kieran Cawthray 2021-06-23 22:14:34 +02:00
parent c3f854ba65
commit 14721e8f1e
2 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,6 @@ PineTimeStyle::PineTimeStyle(DisplayApp* app,
lv_obj_align(dateMonth, sidebar, LV_ALIGN_CENTER, 0, 32);
// Step count gauge
static lv_color_t needle_colors[1];
needle_colors[0] = LV_COLOR_WHITE;
stepGauge = lv_gauge_create(lv_scr_act(), nullptr);
lv_gauge_set_needle_count(stepGauge, 1, needle_colors);

View File

@ -72,6 +72,7 @@ namespace Pinetime {
lv_obj_t* heartbeatBpm;
lv_obj_t* notificationIcon;
lv_obj_t* stepGauge;
lv_color_t needle_colors[1];
Controllers::DateTime& dateTimeController;
Controllers::Battery& batteryController;