diff options
| author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-10-26 20:40:53 +0200 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-10-26 20:46:57 +0200 |
| commit | 794104dd17a28a2db09ca1ed44ba7dfb18a1f0ca (patch) | |
| tree | a872c56f765c61623a6ddf90914f0d1647b70bf7 /utils/nwztools/plattools/test_power.c | |
| parent | d42b43c7860aacafbce97cccb3b2f19ad8812d56 (diff) | |
| download | rockbox-794104dd17a28a2db09ca1ed44ba7dfb18a1f0ca.zip rockbox-794104dd17a28a2db09ca1ed44ba7dfb18a1f0ca.tar.gz rockbox-794104dd17a28a2db09ca1ed44ba7dfb18a1f0ca.tar.bz2 rockbox-794104dd17a28a2db09ca1ed44ba7dfb18a1f0ca.tar.xz | |
nwztools/plattools: switch to BACK key to quit
The power off/option does not exist on some models.
Change-Id: Ifb45293b3b3faa96d9fece2340cbd98299a4a0b7
Diffstat (limited to 'utils/nwztools/plattools/test_power.c')
| -rw-r--r-- | utils/nwztools/plattools/test_power.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/nwztools/plattools/test_power.c b/utils/nwztools/plattools/test_power.c index c02f689..9c429b9 100644 --- a/utils/nwztools/plattools/test_power.c +++ b/utils/nwztools/plattools/test_power.c @@ -63,7 +63,7 @@ int main(int argc, char **argv) { /* clear screen and display welcome message */ nwz_lcdmsg(true, 0, 0, "test_power"); - nwz_lcdmsg(false, 0, 2, "PWR OFF: quit"); + nwz_lcdmsg(false, 0, 2, "BACK: quit"); /* open input device */ int input_fd = nwz_key_open(); if(input_fd < 0) @@ -126,7 +126,7 @@ int main(int argc, char **argv) struct input_event evt; if(nwz_key_read_event(input_fd, &evt) != 1) continue; - if(nwz_key_event_get_keycode(&evt) == NWZ_KEY_OPTION && !nwz_key_event_is_press(&evt)) + if(nwz_key_event_get_keycode(&evt) == NWZ_KEY_BACK && !nwz_key_event_is_press(&evt)) break; } /* finish nicely */ |