From dbf10ecf3bb19d4b335767e0b9dad0f9e94198e6 Mon Sep 17 00:00:00 2001 From: Collin Guarino Date: Sun, 21 Feb 2016 18:25:32 -0500 Subject: Reverted last change since /lights/ must start at 1. --- bridge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3