aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-21 18:25:32 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-21 18:25:32 -0500
commitdbf10ecf3bb19d4b335767e0b9dad0f9e94198e6 (patch)
tree22681cf5f479d6e9959e3c87783011ffa49de5bc
parentf617292031b38874607f4736298ec4e9a15bf7b1 (diff)
Reverted last change since /lights/<index> must start at 1.
-rw-r--r--bridge.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge.go b/bridge.go
index 9dd7d04..a9b8181 100644
--- a/bridge.go
+++ b/bridge.go
@@ -221,7 +221,7 @@ func (bridge *Bridge) GetAllLights() ([]Light, error) {
// Loop through all light indicies to see if they exist
// and parse their values. Supports 100 lights.
var lights []Light
- for index := 0; index < 101; index++ {
+ for index := 1; index < 101; index++ {
light, err := bridge.GetLightByIndex(index)
if err != nil {
break // Final light index reached, index does not exist.