Fix build for HW w/o mux

This commit is contained in:
David Sidrane
2016-07-27 04:33:28 -10:00
committed by Lorenz Meier
parent 50a14cfd29
commit 415fbae31e
+2 -1
View File
@@ -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
}