From 0121a643a2a48558c333381ca7a0431af3440f01 Mon Sep 17 00:00:00 2001 From: MrFrangipane Date: Fri, 5 Jan 2024 16:44:41 +0100 Subject: [PATCH] fix mac address error when using EthernetENC --- Artnet/Receiver.h | 2 +- ArtnetEtherENC.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Artnet/Receiver.h b/Artnet/Receiver.h index 3b89372..b75a104 100644 --- a/Artnet/Receiver.h +++ b/Artnet/Receiver.h @@ -319,7 +319,7 @@ class Receiver_ { } template auto macAddress(uint8_t* mac) -> std::enable_if_t::value> { -#ifndef ESP8266 +#if !defined(ESP8266) && !defined(ARTNET_ETHER_IS_ENC28J60) Ethernet.MACAddress(mac); #endif } diff --git a/ArtnetEtherENC.h b/ArtnetEtherENC.h index 8de9e82..c5f5fbd 100644 --- a/ArtnetEtherENC.h +++ b/ArtnetEtherENC.h @@ -3,6 +3,7 @@ #define ARTNET_ETHER_H #define ARTNET_ENABLE_ETHER +#define ARTNET_ETHER_IS_ENC28J60 #include #include