From 8ca22c23fa3fa96cf661888f6b8a104d4c1cbd1b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 30 Dec 2013 12:39:23 -0600 Subject: NxWM::CTouchscreen: Add CONFIG_NXWM_TOUCHSCREEN_DEVINIT to suppress attempts to initialize the touchscreen from NxWM in the kernel build --- NxWidgets/nxwm/src/ctouchscreen.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NxWidgets/nxwm') diff --git a/NxWidgets/nxwm/src/ctouchscreen.cxx b/NxWidgets/nxwm/src/ctouchscreen.cxx index 853132008..8bf570f74 100644 --- a/NxWidgets/nxwm/src/ctouchscreen.cxx +++ b/NxWidgets/nxwm/src/ctouchscreen.cxx @@ -278,6 +278,7 @@ FAR void *CTouchscreen::listener(FAR void *arg) vdbg("Listener started\n"); +#ifdef CONFIG_NXWM_TOUCHSCREEN_DEVINIT // Initialize the touchscreen device int ret = arch_tcinitialize(CONFIG_NXWM_TOUCHSCREEN_DEVNO); @@ -288,6 +289,7 @@ FAR void *CTouchscreen::listener(FAR void *arg) sem_post(&This->m_waitSem); return (FAR void *)0; } +#endif // Open the touchscreen device that we just created. -- cgit v1.2.3