Skip to content

Conversation

@N6RDV
Copy link

@N6RDV N6RDV commented May 10, 2022

The goal is to prevent inadvertent shutdowns. This can be devastating, especially when Pi is used as a 3d printing server

Variable long_press can be set to a positive integer number of 100 ms intervals (10 for 1 s, 30 for 3s, etc.), defining for how long user needs to keep button pressed to shutdown Raspberry Pi.

If set to 0 (default) - button press would execute shutdown command immediately

N6RDV added 2 commits May 9, 2022 20:56
Add long_press delay to prevent inadvertent shutdowns.
Variable long_press can be set to number of 0.1 s intervals (10 for 1 s, 30 for 3s, etc.), defining how long user have to keep button pressed to shutdown Raspberry Pi. If set to 0 - button press would execute shutdown command immediately
@N6RDV N6RDV changed the title Long press delay (parameteried) Long press delay (parameterized) May 10, 2022
@N6RDV N6RDV marked this pull request as draft May 10, 2022 04:04
@N6RDV N6RDV marked this pull request as ready for review May 10, 2022 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant