Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotplug: allow button timeout actions to trigger a subsequent timeout
This allows visual feedback when timeouts are reached. In our case, there is a single button which on a normal press/release will initiate DPP, but longer presses will first reboot then factory reset. So users know they've held it down long enough, it's nice to change the colour of the button. This also fixes what seems to me a bug, in that you can attach a timeout to a 'release' action but the timing was reset (so you can't distinguish between a released timeout vs a pressed timeout).
- Loading branch information