cleaner code
This commit is contained in:
@ -26,6 +26,7 @@
|
||||
#include "Arduino.h"
|
||||
#include "config.h"
|
||||
|
||||
|
||||
/* Network interface detection. WiFi for ESP8266 and Ethernet for AVR */
|
||||
#ifdef INT_WIFI
|
||||
#include <WiFi.h>
|
||||
@ -41,7 +42,7 @@
|
||||
//# define INT_ETHERNET
|
||||
|
||||
|
||||
#define NO_DOUBLE_BUFFER 1
|
||||
//#define NO_DOUBLE_BUFFER 1
|
||||
/* Defaults */
|
||||
#define E131_DEFAULT_PORT 5568
|
||||
#define WIFI_CONNECT_TIMEOUT 15000 /* 15 seconds */
|
||||
@ -222,6 +223,7 @@ class E131 {
|
||||
stats.last_clientPort = udp.remotePort();
|
||||
} else if (error == ERROR_IGNORE) {
|
||||
// Do nothing
|
||||
return 0;
|
||||
} else {
|
||||
if (Serial)
|
||||
dumpError(error);
|
||||
|
Reference in New Issue
Block a user