apps/examples/touchscreen build fixes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3997 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-09-29 16:46:24 +00:00
parent 1a682b3c48
commit d62ad86fbd
2 changed files with 2 additions and 3 deletions

View File

@ -143,9 +143,9 @@ int MAIN_NAME(int argc, char *argv[])
*/
#if defined(CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN)
for (; namples > 0; nsamples--)
for (; nsamples > 0; nsamples--)
#elif defined(CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES)
for (namples = 0; namples < CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES; nsamples++)
for (nsamples = 0; nsamples < CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES; nsamples++)
#else
for (;;)
#endif

View File

@ -98,7 +98,6 @@ depend: .depend
clean:
@rm -f *.o *~ .*.swp .built
$(call CLEAN)
@$(MAKE) -f Makefile.host clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
distclean: clean
@rm -f Make.dep .depend