Skip to content

Power-off hold: short press option - #119

Closed
vvzvlad wants to merge 1 commit into
bve:mainfrom
vvzvlad:rel-short-power-off
Closed

vvzvlad wants to merge 1 commit into
bve:mainfrom
vvzvlad:rel-short-power-off

Conversation

@vvzvlad

@vvzvlad vvzvlad commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Implements #118.

  • Settings → Device → Power → Power-off hold gets a fourth choice, Short press, stored as hold_ms: 0 in settings.json. The default stays at 2 s; existing files load unchanged.
  • With it a short REL press (released before 500 ms, the same window as REL's short press today) powers off from every screen, menu and dialog, and headless. REL held for 1 s runs what its short press did before: relative measurement in the meter, the footer page on the oscilloscope. The 2 s long press does nothing, and the hold progress box is not shown; instead "Powering off..." is drawn at once, before the settings saves hold the screen for about a second.
  • A wake from a dark screen takes REL's stroke in this mode like any other key's, so holding REL to wake the meter does not set a relative reference on a screen you haven't seen yet. The hold settings keep counting REL towards the power off after a wake, as before.
  • Rebased onto 0.21.14. Independent of the other PRs. It meets Power-on keys: start in a chosen screen #115 in neighbouring README lines and
    SYSTem:KEY: press a panel key over SCPI #149, Multimeter input as a third channel in the oscilloscope #150 in the key handling code; I'll rebase whichever lands later.

Testing

  • pio run builds all four environments without new warnings
  • Tested on ZT703S
  • Tested on ZT706S
  • Not tested on hardware (explain why): no ZT706S here

On ZT703S with Short press: a short REL press powers off; REL held for 1 s toggles relative mode in the meter and turns the footer page on the oscilloscope; the 1 s / 1.5 s / 2 s choices still power off on the hold with the progress box.

Checklist

  • The change does not write to the factory block (0x08000000–0x0801FFFF)
  • vendor/ is unchanged, or a third-party component is updated as a whole
  • README updated if the behaviour or the installation changed

Settings > Device > Power > Power-off hold gets a fourth choice, Short
press: a short REL press powers off from every screen, and REL's own
function (relative measurement, the oscilloscope footer page) moves to a
1 s hold. The 2 s long press does nothing in this mode and no hold
progress is shown; instead "Powering off..." is drawn at once, before the
saves hold the screen. A wake from a dark screen takes REL's stroke in
this mode, as it does for every other key. Stored as hold_ms 0 in
settings.json; the default stays at 2 s.
@vvzvlad
vvzvlad force-pushed the rel-short-power-off branch from fd44ca0 to 3ae5c84 Compare November 25, 2026 13:45
@bve bve mentioned this pull request Nov 26, 2026
2 of 3 tasks
@bve

bve commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thanks for the work on this. As explained in #118, I've decided not to add a short-press power-off: an accidental REL tap would switch the device off mid-measurement, and REL's everyday actions would move to a hold. The 1 s Power-off hold remains the quick option. Closing this PR together with the issue.

@bve bve closed this Nov 26, 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