chore: use new device in main.go
This commit is contained in:
parent
53eae1cc51
commit
7d0d779bf4
7
main.go
7
main.go
@ -5,7 +5,6 @@ import (
|
|||||||
"hands/api"
|
"hands/api"
|
||||||
"hands/cli"
|
"hands/cli"
|
||||||
"hands/config"
|
"hands/config"
|
||||||
"hands/hands"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
@ -22,9 +21,6 @@ func initService() {
|
|||||||
log.Printf(" - 可用接口: %v", config.Config.AvailableInterfaces)
|
log.Printf(" - 可用接口: %v", config.Config.AvailableInterfaces)
|
||||||
log.Printf(" - 默认接口: %s", config.Config.DefaultInterface)
|
log.Printf(" - 默认接口: %s", config.Config.DefaultInterface)
|
||||||
|
|
||||||
// 初始化手型配置映射
|
|
||||||
hands.Init()
|
|
||||||
|
|
||||||
log.Println("✅ 控制服务初始化完成")
|
log.Println("✅ 控制服务初始化完成")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,9 +78,6 @@ func main() {
|
|||||||
// 初始化服务
|
// 初始化服务
|
||||||
initService()
|
initService()
|
||||||
|
|
||||||
// 启动传感器数据模拟
|
|
||||||
hands.ReadSensorData()
|
|
||||||
|
|
||||||
// 设置 Gin 模式
|
// 设置 Gin 模式
|
||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user