Merged in camera-ip-variable (pull request #326)

CameraIP variable added

Approved-by: Saxon Milton <saxon.milton@gmail.com>
This commit is contained in:
Scott Barnard 2020-01-14 10:49:56 +00:00 committed by Saxon Milton
commit bf9f44dfb7
2 changed files with 3 additions and 0 deletions

View File

@ -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",

View File

@ -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 {