From f617292031b38874607f4736298ec4e9a15bf7b1 Mon Sep 17 00:00:00 2001 From: Collin Guarino Date: Sun, 21 Feb 2016 18:24:04 -0500 Subject: Fixed index issue where GetAllLights would not get index 0. --- bridge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge.go b/bridge.go index a9b8181..9dd7d04 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 := 1; index < 101; index++ { + for index := 0; index < 101; index++ { light, err := bridge.GetLightByIndex(index) if err != nil { break // Final light index reached, index does not exist. -- cgit v1.2.3