summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-11-19 22:14:21 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-11-19 22:14:21 +0000
commitc28752b1aff96e342d033e7af63ae65d27589234 (patch)
tree6abdbef2bb3445f17d698fb82199632f2d67fc17 /tools
parentd236af05a02e8cd73d62a4002579513ff97e8a98 (diff)
downloadrockbox-c28752b1aff96e342d033e7af63ae65d27589234.tar.gz
rockbox-c28752b1aff96e342d033e7af63ae65d27589234.tar.bz2
rockbox-c28752b1aff96e342d033e7af63ae65d27589234.zip
CheckWPS: set screen to SCREEN_MAIN when not a r{sb,wp}s.
This fixes the potential bug of mislabeling an {sb,wp}s as remote while it's not. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23668 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r--tools/checkwps/checkwps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c
index b4c2d60d90..e9d023306f 100644
--- a/tools/checkwps/checkwps.c
+++ b/tools/checkwps/checkwps.c
@@ -274,6 +274,8 @@ int main(int argc, char **argv)
if((strcmp(&argv[filearg][strlen(argv[filearg])-4], "rwps") == 0) ||
(strcmp(&argv[filearg][strlen(argv[filearg])-4], "rsbs") == 0))
screen = SCREEN_REMOTE;
+ else
+ screen = SCREEN_MAIN;
#endif
wps_screen = &screens[screen];