diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-21 18:25:32 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-21 18:25:32 -0500 |
commit | dbf10ecf3bb19d4b335767e0b9dad0f9e94198e6 (patch) | |
tree | 22681cf5f479d6e9959e3c87783011ffa49de5bc | |
parent | f617292031b38874607f4736298ec4e9a15bf7b1 (diff) |
Reverted last change since /lights/<index> must start at 1.
-rw-r--r-- | bridge.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |