summaryrefslogtreecommitdiff
path: root/apps/examples/touchscreen
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/touchscreen')
-rw-r--r--apps/examples/touchscreen/tc_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/touchscreen/tc_main.c b/apps/examples/touchscreen/tc_main.c
index 920a504fb..291abcb8f 100644
--- a/apps/examples/touchscreen/tc_main.c
+++ b/apps/examples/touchscreen/tc_main.c
@@ -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