You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2021/04/08 14:38:17 UTC
[incubator-nuttx-apps] branch master updated: examples: Update
missing DJOYSTICK macro to new INPUT template
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new a333a90 examples: Update missing DJOYSTICK macro to new INPUT template
a333a90 is described below
commit a333a908a8e404d2f9dd85ff31824ead8776ea9c
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Apr 8 11:33:52 2021 -0300
examples: Update missing DJOYSTICK macro to new INPUT template
---
examples/README.md | 2 +-
examples/djoystick/djoy_main.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/README.md b/examples/README.md
index 552a683..9fb6cb5 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -266,7 +266,7 @@ driver in `nuttx/include/nuttx/input/djoystick.h`.
Configuration Pre-requisites:
-- `CONFIG_DJOYSTICK` – The discrete joystick driver.
+- `CONFIG_INPUT_DJOYSTICK` – The discrete joystick driver.
Example Configuration:
diff --git a/examples/djoystick/djoy_main.c b/examples/djoystick/djoy_main.c
index 41b494d..a1a3197 100644
--- a/examples/djoystick/djoy_main.c
+++ b/examples/djoystick/djoy_main.c
@@ -54,8 +54,8 @@
/* Configuration ************************************************************/
-#ifndef CONFIG_DJOYSTICK
-# error "CONFIG_DJOYSTICK is not defined in the configuration"
+#ifndef CONFIG_INPUT_DJOYSTICK
+# error "CONFIG_INPUT_DJOYSTICK is not defined in the configuration"
#endif
#ifndef CONFIG_EXAMPLES_DJOYSTICK_DEVNAME