diff --git a/bridge.go b/bridge.go index 9dd5e54..bd2deb2 100644 --- a/bridge.go +++ b/bridge.go @@ -217,8 +217,8 @@ func (bridge *HueBridge) connect() error { } if !*flagDisableRateLimiting { - bridge.bridge.EnableRateLimiting(timeBetweenHueApiCalls) - log.Debugf("⌘ Enabled rate limiting with %s between API calls", timeBetweenHueApiCalls) + bridge.bridge.EnableRateLimiting(timeBetweenHueAPICalls) + log.Debugf("⌘ Enabled rate limiting with %s between API calls", timeBetweenHueAPICalls) } log.Debugf("⌘ Connected to bridge \"%s\" (Model: %s, API version: %s)", configuration.Name, configuration.ModelId, configuration.APIVersion) diff --git a/kelvin.go b/kelvin.go index b026b64..23896a9 100644 --- a/kelvin.go +++ b/kelvin.go @@ -48,7 +48,7 @@ var lights []*Light const lightUpdateInterval = 1 * time.Second const stateUpdateInterval = 1 * time.Minute -const timeBetweenHueApiCalls = 100 * time.Millisecond // see https://developers.meethue.com/develop/application-design-guidance/hue-system-performance/ +const timeBetweenHueAPICalls = 100 * time.Millisecond // see https://developers.meethue.com/develop/application-design-guidance/hue-system-performance/ const lightTransistionTime = 400 * time.Millisecond func main() {