| 77 | } |
| 78 | |
| 79 | void BtManage::requestViewUpdate() { |
| 80 | lock(); |
| 81 | if (isViewEnabled) { |
| 82 | if (lvgl::lock(1000)) { |
| 83 | view.update(); |
| 84 | lvgl::unlock(); |
| 85 | } else { |
| 86 | LOGGER.error(LOG_MESSAGE_MUTEX_LOCK_FAILED_FMT, "LVGL"); |
| 87 | } |
| 88 | } |
| 89 | unlock(); |
| 90 | } |
| 91 | |
| 92 | void BtManage::onBtEvent(const struct BtEvent& event) { |
| 93 | auto radio_state = bluetooth::getRadioState(); |