update lights.c

Change-Id: Iab411949e85e7d6446aa5e15946c37653dd060f2