It's a pity the processor isn't going to sleep when turning off. I tried to add that functionality, but ran into problems with "self-wakeup" (it would wakeup almost immediately after shutdown), probably because of the button long press or polling during the long-press used to turn the device "off".
Eh, don't worry about that, a vast majority of deployed microcontrollers never sleep. The power consumption is really negligible. Good job getting to the bottom of this bug, I couldn't figure that out!
It's a pity the processor isn't going to sleep when turning off. I tried to add that functionality, but ran into problems with "self-wakeup" (it would wakeup almost immediately after shutdown), probably because of the button long press or polling during the long-press used to turn the device "off".