commit | adee5dfae5dfd215b2b7a8c4b0c77dce8a3d97be | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Mon Sep 14 12:50:56 2020 +0200 |
committer | Tom Rini <trini@konsulko.com> | Wed Oct 14 11:16:34 2020 -0400 |
tree | 48e0352de56eeffb6876ae884e4be7a37ddd757a | |
parent | 5355be613c4c269013d2dcd70dc7615cedcd5d7d [diff] |
cmd/button: return button status To make the button command useful in a shell script it should return the status of the button: * 0 (true) - pressed, on * 1 (false) - not pressed, off The button command takes only one argument. Correct maxargs. Adjust the Python unit test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>