From 6d2c58cd6693bef07b11a735ab06da84e1b6a4da Mon Sep 17 00:00:00 2001 From: Scott Date: Thu, 9 Jan 2020 15:28:49 +1030 Subject: [PATCH] CameraIP variable added --- revid/config/config.go | 1 + revid/revid.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/revid/config/config.go b/revid/config/config.go index 8768e9db..04d51a63 100644 --- a/revid/config/config.go +++ b/revid/config/config.go @@ -305,6 +305,7 @@ var TypeData = map[string]string{ "Brightness": "uint", "BurstPeriod": "uint", "CameraChan": "int", + "CameraIP": "string", "CBR": "bool", "ClipDuration": "uint", "Exposure": "enum:auto,night,nightpreview,backlight,spotlight,sports,snow,beach,verylong,fixedfps,antishake,fireworks", diff --git a/revid/revid.go b/revid/revid.go index 07c317e4..a05c9650 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -749,6 +749,8 @@ func (r *Revid) Update(vars map[string]string) error { break } r.cfg.CBR = v + case "CameraIP": + r.cfg.CameraIP = value case "VBRQuality": v, ok := map[string]config.Quality{"standard": config.QualityStandard, "fair": config.QualityFair, "good": config.QualityGood, "great": config.QualityGreat, "excellent": config.QualityExcellent}[strings.ToLower(value)] if !ok {