From 8ca41b2d7a686873bc46f672d4b0ecb2eb24d4b7 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Fri, 24 Feb 2017 07:04:58 -0600 Subject: [PATCH] STM32F4 Discovery: Fix issues with QEncoder support --- configs/stm32f4discovery/Kconfig | 2 +- configs/stm32f4discovery/src/stm32_qencoder.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/configs/stm32f4discovery/Kconfig b/configs/stm32f4discovery/Kconfig index 9703364210..badfd635f9 100644 --- a/configs/stm32f4discovery/Kconfig +++ b/configs/stm32f4discovery/Kconfig @@ -24,7 +24,7 @@ config STM32F4DISCO_USBHOST_PRIO config STM32F4DISCO_QETIMER int "Timer to use with QE encoder" - default 3 + default 2 depends on QENCODER config PM_BUTTONS diff --git a/configs/stm32f4discovery/src/stm32_qencoder.c b/configs/stm32f4discovery/src/stm32_qencoder.c index 80264a7a2a..24bf2519d3 100644 --- a/configs/stm32f4discovery/src/stm32_qencoder.c +++ b/configs/stm32f4discovery/src/stm32_qencoder.c @@ -78,5 +78,3 @@ int stm32_qencoder_initialize(FAR const char *devpath, int timer) return ret; } - -#endif /* HAVE_QENCODER */