Update to Feature request- sleep mode


In regards to having a way to shut off sleep mode if the user would prefer not to use that why not have code
that can detect an external power supply is attached regardless of battery on/off switch position where sleep mode is then suspended?
I can see where one might want sleep mode to be active when only using battery power however a way to change the time period would be nice.