Skip to content

Commit

Permalink
fix mac address error when using EthernetENC
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFrangipane committed Jan 5, 2024
1 parent 70f6966 commit 0121a64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Artnet/Receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class Receiver_ {
}
template <typename T = S>
auto macAddress(uint8_t* mac) -> std::enable_if_t<std::is_same<T, EthernetUDP>::value> {
#ifndef ESP8266
#if !defined(ESP8266) && !defined(ARTNET_ETHER_IS_ENC28J60)
Ethernet.MACAddress(mac);
#endif
}
Expand Down
1 change: 1 addition & 0 deletions ArtnetEtherENC.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#define ARTNET_ETHER_H

#define ARTNET_ENABLE_ETHER
#define ARTNET_ETHER_IS_ENC28J60

#include <Arduino.h>
#include <ArxTypeTraits.h>
Expand Down

0 comments on commit 0121a64

Please sign in to comment.