From 94cf361b55d2388589c99de85ed0274735a82c28 Mon Sep 17 00:00:00 2001 From: cedricve Date: Tue, 12 Aug 2025 04:47:50 +0000 Subject: [PATCH] Reset baseWidth and baseHeight in StoreConfig function --- machinery/src/config/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/machinery/src/config/main.go b/machinery/src/config/main.go index ec623f8..98628ed 100644 --- a/machinery/src/config/main.go +++ b/machinery/src/config/main.go @@ -591,6 +591,10 @@ func StoreConfig(configDirectory string, config models.Config) error { config.Encryption.PrivateKey = encryptionPrivateKey } + // Reset the basewidth and baseheight + config.Capture.IPCamera.BaseWidth = 0 + config.Capture.IPCamera.BaseHeight = 0 + // Save into database if os.Getenv("DEPLOYMENT") == "factory" || os.Getenv("MACHINERY_ENVIRONMENT") == "kubernetes" { // Write to mongodb