We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a30b058 + 6a578ca commit 90d3a2bCopy full SHA for 90d3a2b
api.go
@@ -777,10 +777,6 @@ func (api *CacophonyAPI) GetDeviceSettings() (map[string]interface{}, error) {
777
778
// UpdateDeviceSettings updates the device settings on the API and returns the updated settings
779
func (api *CacophonyAPI) UpdateDeviceSettings(settings map[string]interface{}) (map[string]interface{}, error) {
780
- if len(settings) == 0 {
781
- fmt.Println("settings is empty")
782
- return nil, nil
783
- }
784
url := joinURL(api.serverURL, apiBasePath, "devices/"+strconv.Itoa(api.device.id)+"/settings")
785
payload, err := json.Marshal(map[string]interface{}{
786
"settings": settings,
0 commit comments