完善背光控制,优先使用 xset 控制。完成浏览器展示

This commit is contained in:
2024-12-30 12:16:10 +08:00
parent 73571c923a
commit ff97e25a55
8 changed files with 222 additions and 39 deletions

View File

@@ -35,7 +35,7 @@ func PushCard(ctx context.Context) leaf.HandlerFunc {
for i, group := range g.PushGroups {
// 解析配置
gv, _ := json.Marshal(group)
zap.S().Info("关卡配置:", string(gv))
zap.S().Infof("关卡配置[%v]: %s", i, string(gv))
// 开始连接读卡器
if group.Read != "" {
@@ -63,7 +63,7 @@ func PushCard(ctx context.Context) leaf.HandlerFunc {
zap.S().Panicln("初始化发卡器失败: ", err)
}
// 保存读卡器和发卡器
// 保存发卡器
devices[i] = device
}
go func() {