Fixed bug in one-shot logic in controller thread so light on and off commands wouldn't continuously re-send every program scan.