Reset led when switching patterns

The blinking must be disabled before programming new blink
period and color.