cleaner code

This commit is contained in:
2024-01-29 19:03:17 -06:00
parent 064bfbc346
commit 713be34f29
6 changed files with 473 additions and 210 deletions

View File

@ -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);