Module improvements: lvgl, gps, crypt (#585)
This commit is contained in:
committed by
GitHub
parent
ca5b071859
commit
db7468d0c8
@@ -16,7 +16,7 @@
|
||||
#include <tactility/log.h>
|
||||
#include <tactility/drivers/display.h>
|
||||
#include <tactility/drivers/backlight.h>
|
||||
#include <tactility/lvgl_module.h>
|
||||
#include <lvgl/lvgl.h>
|
||||
|
||||
namespace tt::service::displayidle {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <Tactility/service/loader/Loader.h>
|
||||
|
||||
#include <tactility/log.h>
|
||||
#include <tactility/lvgl_module.h>
|
||||
#include <lvgl/lvgl.h>
|
||||
|
||||
namespace tt::service::gui {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <tactility/device.h>
|
||||
#include <tactility/drivers/backlight.h>
|
||||
#include <tactility/drivers/keyboard.h>
|
||||
#include <tactility/lvgl_module.h>
|
||||
#include <lvgl/lvgl.h>
|
||||
|
||||
namespace tt::service::keyboardidle {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <Tactility/service/ServiceManifest.h>
|
||||
#include <Tactility/service/memorychecker/MemoryCheckerService.h>
|
||||
|
||||
#include <tactility/lvgl_icon_statusbar.h>
|
||||
#include <lvgl/lvgl_icon_statusbar.h>
|
||||
#include <tactility/log.h>
|
||||
|
||||
namespace tt::service::memorychecker {
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include <tactility/log.h>
|
||||
#include <tactility/module.h>
|
||||
|
||||
#include <tactility/lvgl_module.h>
|
||||
#include <tactility/lvgl_icon_statusbar.h>
|
||||
#include <lvgl/lvgl.h>
|
||||
#include <lvgl/lvgl_icon_statusbar.h>
|
||||
|
||||
#include <cstring>
|
||||
|
||||
@@ -268,8 +268,8 @@ class StatusbarService final : public Service {
|
||||
}
|
||||
|
||||
void update() {
|
||||
if (module_is_started(&lvgl_module)) {
|
||||
if (lvgl_try_lock(100)) {
|
||||
if (lvgl_is_running()) {
|
||||
if (lvgl_try_lock(200)) {
|
||||
updateGpsIcon();
|
||||
updateBluetoothIcon();
|
||||
updateWifiIcon();
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <lv_screenshot.h>
|
||||
#endif
|
||||
|
||||
#include <tactility/lvgl_icon_statusbar.h>
|
||||
#include <lvgl/lvgl_icon_statusbar.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <cctype>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include <Tactility/file/File.h>
|
||||
|
||||
#include <tactility/crypt.h>
|
||||
#include <crypt/crypt.h>
|
||||
|
||||
#include <Tactility/service/ServicePaths.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user