feat: add internal USB recovery and initialize picoclaw token

This commit is contained in:
wenjie
2026-04-16 17:00:16 +08:00
parent aa0546ff37
commit cefe0f9ab2
6 changed files with 62 additions and 11 deletions

View File

@@ -28,6 +28,10 @@ func main() {
}
func initialize() {
if err := config.EnsurePicoclawInternalToken(); err != nil {
log.Fatalf("failed to initialize picoclaw internal token: %v", err)
}
logger.Init()
// init screen parameters
@@ -82,7 +86,7 @@ func run() {
httpAddr,
httpsAddr,
r,
router.PicoclawLoopbackHTTPAllowedPaths()...,
router.LoopbackHTTPAllowedPaths()...,
); err != nil {
panic("start http server failed")
}