modify 修复前端展示配置与实际插件配置不一致的bug

This commit is contained in:
2026-09-17 15:34:34 +08:00
parent 293254c61a
commit e0211105bd
6 changed files with 261 additions and 40 deletions
+6
View File
@@ -7,6 +7,7 @@ import os
# ---- input 事件协议(IN1/event 后端用)----
EV_KEY = 0x01
KEY_UP = 103
KEY_DOWN = 108
VALUE_RELEASE = 0
VALUE_PRESS = 1
VALUE_REPEAT = 2
@@ -14,6 +15,11 @@ VALUE_REPEAT = 2
DEFAULT_EVENT_DEVICE = "/dev/input/event1"
GPIO_KEYS_NAME = "gpio-keys"
# SE5 的 IN2 与 IN1 同走 gpio-keys 事件设备(event1),仅键码不同;
# 默认取 KEY_DOWN,实测不符时用 `diwatch in2 -k <键码>` 覆盖,
# 键码可用 `diwatch detect` 现场确认。
DEFAULT_IN2_KEY = KEY_DOWN
# ---- IN 通道编号 ----
IN1_INDEX = 1
IN2_INDEX = 2