diff options
| author | hubmartin <hub.martin@gmail.com> | 2021-09-16 20:04:31 (GMT) |
|---|---|---|
| committer | hubmartin <hub.martin@gmail.com> | 2021-09-16 20:04:31 (GMT) |
| commit | 27366bdfdf05a5fd3128ad8eabedbeba720ca885 (patch) | |
| tree | 94bf7fe9e60c7c88d269e207acb197915eb98660 /src/displayapp/screens/Tile.cpp | |
| parent | db50131ed49f2fdb639799ca12839862340f8396 (diff) | |
| parent | 3eb73774a39e255cd4b5de76441a59f1525a989c (diff) | |
Merge branch 'develop' into wake-time
Diffstat (limited to 'src/displayapp/screens/Tile.cpp')
| -rw-r--r-- | src/displayapp/screens/Tile.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/displayapp/screens/Tile.cpp b/src/displayapp/screens/Tile.cpp index 777b5bb..1d4f0d0 100644 --- a/src/displayapp/screens/Tile.cpp +++ b/src/displayapp/screens/Tile.cpp @@ -95,6 +95,7 @@ Tile::Tile(uint8_t screenID, lv_obj_set_style_local_pad_inner(btnm1, LV_BTNMATRIX_PART_BG, LV_STATE_DEFAULT, 10); for (uint8_t i = 0; i < 6; i++) { + lv_btnmatrix_set_btn_ctrl(btnm1, i, LV_BTNMATRIX_CTRL_CLICK_TRIG); if (applications[i].application == Apps::None) { lv_btnmatrix_set_btn_ctrl(btnm1, i, LV_BTNMATRIX_CTRL_DISABLED); } @@ -122,10 +123,6 @@ void Tile::UpdateScreen() { lv_label_set_text(batteryIcon, BatteryIcon::GetBatteryIcon(batteryController.PercentRemaining())); } -bool Tile::Refresh() { - return running; -} - void Tile::OnValueChangedEvent(lv_obj_t* obj, uint32_t buttonId) { if(obj != btnm1) return; |
