Skip to content

Commit d8d0fc3

Browse files
authored
Merge pull request #21 from spring-lab/master
fix ptz.types.SetPreset.PresetToken is optional
2 parents d42cc33 + be3347f commit d8d0fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptz/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ type SetPreset struct {
9898
XMLName string `xml:"tptz:SetPreset"`
9999
ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
100100
PresetName xsd.String `xml:"tptz:PresetName"`
101-
PresetToken onvif.ReferenceToken `xml:"tptz:PresetToken"`
101+
PresetToken onvif.ReferenceToken `xml:"tptz:PresetToken,omitempty"`
102102
}
103103

104104
type SetPresetResponse struct {

0 commit comments

Comments
 (0)