On 2026-10-13T16:33:33, Petr Hodina via B4 Relay <[email protected]> wrote: > cmd: button: add live monitor subcommand > > Add a 'monitor' subcommand which redraws the state of all buttons > every 100ms until Ctrl-C is pressed or a timeout expires (default 5s, > 0 for none). This allows the buttons to be checked live on a device. > > It reuses show_button_status() so both subcommands produce the same > output. > > Signed-off-by: Petr Hodina <[email protected]> > > cmd/button.c | 78 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 76 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <[email protected]>
