We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8dbbac commit 6a578caCopy full SHA for 6a578ca
api.go
@@ -785,10 +785,6 @@ func (api *CacophonyAPI) GetDeviceSettings() (map[string]interface{}, error) {
785
786
// UpdateDeviceSettings updates the device settings on the API and returns the updated settings
787
func (api *CacophonyAPI) UpdateDeviceSettings(settings map[string]interface{}) (map[string]interface{}, error) {
788
- if len(settings) == 0 {
789
- fmt.Println("settings is empty")
790
- return nil, nil
791
- }
792
url := joinURL(api.serverURL, apiBasePath, "devices/"+strconv.Itoa(api.device.id)+"/settings")
793
payload, err := json.Marshal(map[string]interface{}{
794
"settings": settings,
0 commit comments