feat(radio): OS compatibility layer (#5840)

This commit is contained in:
Raphael Coeffic
2025-05-03 19:07:49 +10:00
committed by GitHub
parent c996612b0a
commit ab2a19e153
92 changed files with 1740 additions and 896 deletions
+3 -2
View File
@@ -28,6 +28,7 @@
#include "touch.h"
#include "view_main.h"
#include "os/time.h"
#define MAX_INSTRUCTIONS (20000 / 100)
@@ -117,11 +118,11 @@ void LuaEventHandler::event_cb(lv_event_t* e)
_startX = rel_pos.x;
_startY = rel_pos.y;
downTime = RTOS_GET_MS();
downTime = time_get_ms();
}
} else if (code == LV_EVENT_RELEASED) {
// tap count handling
uint32_t now = RTOS_GET_MS();
uint32_t now = time_get_ms();
if (now - downTime <= LUA_TAP_TIME) {
if (now - tapTime > LUA_TAP_TIME) {
tapCount = 1;