From 415fbae31e27fe81c7f70fafe615c6046f0a9540 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 27 Jul 2016 04:33:28 -1000 Subject: [PATCH] Fix build for HW w/o mux --- src/drivers/tap_esc/tap_esc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/tap_esc/tap_esc.cpp b/src/drivers/tap_esc/tap_esc.cpp index 2fb3e0b2d4..d2afacd36c 100644 --- a/src/drivers/tap_esc/tap_esc.cpp +++ b/src/drivers/tap_esc/tap_esc.cpp @@ -395,10 +395,11 @@ uint8_t TAP_ESC::crc_packet(EscPacket &p) } void TAP_ESC::select_responder(uint8_t sel) { +#if defined(GPIO_S0) px4_arch_gpiowrite(GPIO_S0, sel & 1); px4_arch_gpiowrite(GPIO_S1, sel & 2); px4_arch_gpiowrite(GPIO_S2, sel & 4); - +#endif }