diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index de7f0067c8..3df22b4148 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl @@ -142,18 +142,23 @@ while() { exit; } - # print "LCD: $wps wants $rheight x $rwidth\n"; + #print "LCD: $wps wants $height x $width\n"; + #print "LCD: is $rheight x $rwidth\n"; - if(($height >= $rheight) || - ($width >= $width)) { + if(($height <= $rheight) && ($width <= $width)) { # # The target model has an LCD that is suitable for this # WPS # + #print "Size requirement is fine!\n"; + mkdirs(); buildcfg(); copywps(); } + else { + #print "Skip $wps due to size restraints\n"; + } $within = 0; undef $wps, $width, $height, $font, $statusbar, $author;