fmalekpour / OctoPrint-Gpioshutdown

12 stars 13 forks source link

Add holdtime #17

Closed TeeVau closed 3 years ago

TeeVau commented 3 years ago

I've implemented a very simple solution to prevent the system to shutdown even when the button is just pushed briefly. After the bounce time the state of the gpio is checked. And only if the button is still being pushed the system shutsdown. If not there is no shutdown

TeeVau commented 3 years ago

Resolves #9

AndrewFRC135 commented 3 years ago

I hope this gets merged into master. I'm currently unable to use this plugin because this fix for issue #9 isn't published yet. Whenever I turn on my PSU relay, the RPi supply voltage drops briefly. This momentary drop is enough to trigger the shutdown routine. I've tried adding a bypass capacitor to the shutdown pin, but no luck. The problem goes away when disabling the plugin.