Power hat software improvment

I noticed that if we set a safe shutdown when the battery reached 10% for example that when plugging the unit back in, it will not power up again until the battery is above 10%. Ideally it should power back up immediately when plugged back in, especially in production.
I made the mistake of testing the threshold at 50% and had to wait a while to bring my device back online.