From 41e51a7c85e4e61db17543236038863b3fed1865 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 4 Apr 2017 12:34:18 -0700 Subject: [PATCH] tap_esc: change define to use BOARD_ prefix --- src/drivers/tap_esc/tap_esc.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/drivers/tap_esc/tap_esc.cpp b/src/drivers/tap_esc/tap_esc.cpp index ac4706d984..fab41ead56 100644 --- a/src/drivers/tap_esc/tap_esc.cpp +++ b/src/drivers/tap_esc/tap_esc.cpp @@ -68,6 +68,10 @@ #include "drv_tap_esc.h" +#if !defined(BOARD_TAP_ESC_NO_VERIFY_CONFIG) +# define BOARD_TAP_ESC_NO_VERIFY_CONFIG 0 +#endif + /* * This driver connects to TAP ESCs via serial. */ @@ -267,7 +271,7 @@ TAP_ESC::init() return ret; } -#if !defined(TAP_ESC_NO_VERIFY_CONFIG) +#if !BOARD_TAP_ESC_NO_VERIFY_CONFIG /* Verify All ESC got the config */ @@ -314,7 +318,7 @@ TAP_ESC::init() } -#endif // +#endif /* To Unlock the ESC from the Power up state we need to issue 10 * ESCBUS_MSG_ID_RUN request with all the values 0;