From 06929c1a9b79058fff87b9d77e968849e84e4155 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 10 Apr 2019 10:53:21 +0200 Subject: [PATCH] boards: native: guard motor driver simulation code --- boards/native/include/board.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boards/native/include/board.h b/boards/native/include/board.h index 9a36e3b4c9..18c32082a8 100644 --- a/boards/native/include/board.h +++ b/boards/native/include/board.h @@ -127,6 +127,7 @@ extern mtd_dev_t *mtd0; /** @} */ #endif +#if MODULE_PERIPH_QDEC /** * @brief Simulate QDEC on motor_set() calls * @@ -182,6 +183,7 @@ static const motor_driver_config_t motor_driver_config[] = { #define MOTOR_DRIVER_NUMOF ARRAY_SIZE(motor_driver_config) /** @} */ +#endif /** * @name ztimer configuration