PiSupply / Pi-Supply-Switch

Pi Supply Switch On/Off Switch for Raspberry Pi
https://www.pi-supply.com/product/pi-supply-raspberry-pi-power-switch/
Other
58 stars 17 forks source link

Added debounce code to avoid unexpected shutdowns #8

Closed coconut147 closed 7 years ago

coconut147 commented 7 years ago

Fixes issue #7

When applying this PR, the button has to be pressed for at least 100ms to invoke a shutdown.

francesco-vannini commented 7 years ago

Solves issue #7

skyromanov commented 6 years ago

Hello! I saw this post once I have already installed the softshut script on https://github.com/PiSupply/Pi-Supply-Switch. When I start the raspberry, it automatically turns off. Is there is a way to prevent from it before changing thé code of the script? Thank you for help. Great day. Skyromanov