From 4c52c566050a39c9cfac26719cdf5823dee318b5 Mon Sep 17 00:00:00 2001 From: Marcelo Aquino Date: Mon, 15 May 2017 02:28:49 -0300 Subject: [PATCH] Linux: Give an error if UDP is selected (#840) UDP isn't implemented in Linux. --- MySensors.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MySensors.h b/MySensors.h index 6c7d3ad..e23ba02 100644 --- a/MySensors.h +++ b/MySensors.h @@ -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"