chore: use new device in main.go

This commit is contained in:
Eli Yip 2025-05-28 09:52:41 +08:00
parent 53eae1cc51
commit 7d0d779bf4
No known key found for this signature in database
GPG Key ID: C98B69D4CF7D7EC5

View File

@ -5,7 +5,6 @@ import (
"hands/api"
"hands/cli"
"hands/config"
"hands/hands"
"log"
"os"
"time"
@ -22,9 +21,6 @@ func initService() {
log.Printf(" - 可用接口: %v", config.Config.AvailableInterfaces)
log.Printf(" - 默认接口: %s", config.Config.DefaultInterface)
// 初始化手型配置映射
hands.Init()
log.Println("✅ 控制服务初始化完成")
}
@ -82,9 +78,6 @@ func main() {
// 初始化服务
initService()
// 启动传感器数据模拟
hands.ReadSensorData()
// 设置 Gin 模式
gin.SetMode(gin.ReleaseMode)