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.tar.gz rockbox-794104dd17a28a2db09ca1ed44ba7dfb18a1f0ca.zip |
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 c02f689b17..9c429b989a 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) | |||
63 | { | 63 | { |
64 | /* clear screen and display welcome message */ | 64 | /* clear screen and display welcome message */ |
65 | nwz_lcdmsg(true, 0, 0, "test_power"); | 65 | nwz_lcdmsg(true, 0, 0, "test_power"); |
66 | nwz_lcdmsg(false, 0, 2, "PWR OFF: quit"); | 66 | nwz_lcdmsg(false, 0, 2, "BACK: quit"); |
67 | /* open input device */ | 67 | /* open input device */ |
68 | int input_fd = nwz_key_open(); | 68 | int input_fd = nwz_key_open(); |
69 | if(input_fd < 0) | 69 | if(input_fd < 0) |
@@ -126,7 +126,7 @@ int main(int argc, char **argv) | |||
126 | struct input_event evt; | 126 | struct input_event evt; |
127 | if(nwz_key_read_event(input_fd, &evt) != 1) | 127 | if(nwz_key_read_event(input_fd, &evt) != 1) |
128 | continue; | 128 | continue; |
129 | if(nwz_key_event_get_keycode(&evt) == NWZ_KEY_OPTION && !nwz_key_event_is_press(&evt)) | 129 | if(nwz_key_event_get_keycode(&evt) == NWZ_KEY_BACK && !nwz_key_event_is_press(&evt)) |
130 | break; | 130 | break; |
131 | } | 131 | } |
132 | /* finish nicely */ | 132 | /* finish nicely */ |