diff --git a/examples/README.md b/examples/README.md index 552a683dd..9fb6cb539 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 41b494de0..a1a319732 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