Linux: Give an error if UDP is selected (#840)

UDP isn't implemented in Linux.
This commit is contained in:
Marcelo Aquino
2017-05-15 07:28:49 +02:00
committed by Henrik Ekblad
parent 726a20dad9
commit 4c52c56605
+3
View File
@@ -227,6 +227,9 @@ MY_DEFAULT_RX_LED_PIN in your sketch instead to enable LEDs
#include "core/MyGatewayTransportEthernet.cpp"
#elif defined(MY_GATEWAY_LINUX)
// GATEWAY - Generic Linux
#if defined(MY_USE_UDP)
#error UDP mode is not available for Linux
#endif
#include "drivers/Linux/EthernetClient.h"
#include "drivers/Linux/EthernetServer.h"
#include "drivers/Linux/IPAddress.h"