From 794104dd17a28a2db09ca1ed44ba7dfb18a1f0ca Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 26 Oct 2016 20:40:53 +0200 Subject: nwztools/plattools: switch to BACK key to quit The power off/option does not exist on some models. Change-Id: Ifb45293b3b3faa96d9fece2340cbd98299a4a0b7 --- utils/nwztools/plattools/test_power.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/nwztools/plattools/test_power.c') 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) { /* 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 */ -- cgit