Skip to content

feat: Add Power Button Hold Duration setting#506

Closed
Eloren1 wants to merge 4 commits intocrosspoint-reader:masterfrom
Eloren1:feature/power-button-longpress
Closed

feat: Add Power Button Hold Duration setting#506
Eloren1 wants to merge 4 commits intocrosspoint-reader:masterfrom
Eloren1:feature/power-button-longpress

Conversation

@Eloren1
Copy link
Contributor

@Eloren1 Eloren1 commented Jan 23, 2026

Summary

  • Add Power Button Hold Duration setting ("0.5s", "1s", "2s")
  • Set Power Button Hold Duration to 0.5 seconds by default

Additional Context

Previous hold duration was hardcoded to 400ms, it's a bit too fast and doesn't feel like "long-press".

Now it's configurable. I still keep 0.5s as a default value, with an ability to select higher values in settings.

In fact, the difference is noticeable and therefore this is a good customization to avoid accidental clicks for some.

image

AI Usage

Did you use AI tools to help write this code? PARTIALLY

nkocher added a commit to nkocher/crosspoint-reader that referenced this pull request Jan 31, 2026
- Update current branch from theme-engine-wiggum to custom-v16
- Document v16.0 base with merged PRs crosspoint-reader#442, crosspoint-reader#506, crosspoint-reader#433
- Add git workflow for syncing with upstream
- Add code style patterns (house style, null-checks, settings)
- Document pre-commit hook behavior
- Remove outdated theme-specific content
- Update repository structure (private fork, remotes, branches)
- Clean up integrated PRs table
nkocher added a commit to nkocher/crosspoint-reader that referenced this pull request Jan 31, 2026
PR crosspoint-reader#506 added powerButtonHoldDuration but placed it in the middle of the
serialization sequence. This breaks backward compatibility with existing
v0.16.0 settings.bin files on SD cards.

Fix: Move powerButtonHoldDuration to the end of the serialization order,
after sleepScreenCoverFilter, maintaining the 'new fields at end' pattern
for backward compatibility.

SETTINGS_COUNT: 23 -> 24
nkocher added a commit to nkocher/crosspoint-reader that referenced this pull request Jan 31, 2026
Critical learnings from v16.0 PR merges:
- Settings serialization order must preserve backward compatibility
- New settings always go at END of sequence
- Document PR crosspoint-reader#506 and crosspoint-reader#433 fixes
- Add working serial monitor command (cat vs pio device monitor)
@daveallie
Copy link
Member

I'd prefer if we just tweaked it to a reasonable static value, I get that people want to customise their experience, but this feels like a spot where we can just make up our minds and keep the user on the rails.

@daveallie daveallie closed this Feb 19, 2026
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.

2 participants