diff --git a/ptz/types.go b/ptz/types.go index 3efdee1f..62340a64 100644 --- a/ptz/types.go +++ b/ptz/types.go @@ -98,7 +98,7 @@ type SetPreset struct { XMLName string `xml:"tptz:SetPreset"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"` PresetName xsd.String `xml:"tptz:PresetName"` - PresetToken onvif.ReferenceToken `xml:"tptz:PresetToken"` + PresetToken onvif.ReferenceToken `xml:"tptz:PresetToken,omitempty"` } type SetPresetResponse struct {