Rename icons, fix T-Lora Pager config and more (#502)
* **New Features** * Added NFC chip-select to SD card hardware configuration. * **Refactor** * Consolidated and renamed icon resources; apps and status-bar now reference unified icon headers and new icon constants. * Renamed LVGL lock API (timed → lvgl_try_lock) and updated callers. * **Documentation** * Updated module README and license files; added Apache-2.0 license document.
This commit is contained in:
committed by
GitHub
parent
72b55b221e
commit
3a24d058c9
@@ -1,4 +1,4 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
#ifndef ESP_PLATFORM
|
||||
|
||||
#include <tactility/check.h>
|
||||
@@ -43,7 +43,7 @@ bool lvgl_lock(void) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool lvgl_try_lock_timed(uint32_t timeout) {
|
||||
bool lvgl_try_lock(uint32_t timeout) {
|
||||
if (!lvgl_mutex_initialised) return false;
|
||||
return recursive_mutex_try_lock(&lvgl_mutex, millis_to_ticks(timeout));
|
||||
}
|
||||
@@ -75,7 +75,7 @@ static void lvgl_task(void* arg) {
|
||||
if (lvgl_module_config.on_start) lvgl_module_config.on_start();
|
||||
|
||||
while (!lvgl_task_is_interrupt_requested()) {
|
||||
if (lvgl_try_lock_timed(10)) {
|
||||
if (lvgl_try_lock(10)) {
|
||||
task_delay_ms = lv_timer_handler();
|
||||
lvgl_unlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user