Files
packages/anda/tools/arduino-create-agent/update.patch
T
2025-02-04 16:59:52 +08:00

26 lines
776 B
Diff

diff --git a/main.go b/main.go
index 1ca857b..c945487 100755
--- a/main.go
+++ b/main.go
@@ -461,7 +461,6 @@ func loop() {
r.Handle("WSS", "/socket.io/", socketHandler)
r.GET("/info", infoHandler)
r.POST("/pause", pauseHandler)
- r.POST("/update", updateHandler)
// Mount goa handlers
goa := v2.Server(config.GetDataDir().String(), Index)
diff --git a/updater/updater.go b/updater/updater.go
index db4e545..693431a 100644
--- a/updater/updater.go
+++ b/updater/updater.go
@@ -34,7 +34,7 @@ import (
// binary to be executed to perform the update. If no update has been downloaded
// it returns an empty string.
func Start(src string) string {
- return start(src)
+ return ""
}
// CheckForUpdates checks if there is a new version of the binary available and