Makes leds behave properly

This is providing code for leds control to work. It has been written by paulicat and we've been using it since 4.2.2

This will change the behavior in order to get the timing to work.

Currently, going in PA, changing the notification pulse stuff will work for color. as long as yellow, green or red are chosen. But, the on/off timing, on duration and off duration do not work properly. This makes it work. They can be redefined later on by user, but the leds will actually work. And no more rainbow effect (starts green, goes yellow, ends red).