Toggle button with timed on off help

I've encountered a similar or same issue with one LED. It's blinking, and I want to turn it on or off. But it's not enough to just halt the blink code, because it could be in the on state when it's commanded to do that. So you need some additional logic to ensure that it's set to some defined state when the blinking stops.

Does that sound similar to your problem?

There are many potential solutions to it.