Changed scoping of led in daemon