Skip to content

Commit dbb7770

Browse files
authored
Merge pull request #7 from pennam/temp-fix
Temporary fixes to build with core 1.2.1
2 parents 5e0e737 + 8c2df55 commit dbb7770

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bpid/csn.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
namespace arduino { namespace csn {
1414

1515
bool get(uint8_t *in, uint32_t size) {
16+
#if defined ARDUINO_UNOR4_WIFI
17+
return false;
18+
#else
1619
if (size < CRYPTO_SN_SIZE) {
1720
return false;
1821
}
@@ -21,6 +24,7 @@ namespace arduino { namespace csn {
2124
return false;
2225
}
2326
return true;
27+
#endif
2428
}
2529

2630
}} // arduino::csn

src/bpid/mac.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define IFACE_MAC_ADDR_LENGTH WL_MAC_ADDR_LENGTH
2424
#elif defined(ARDUINO_UNOR4_WIFI)
2525
#include <WiFi.h>
26-
#define IFACE_MAC_ADDR_LENGTH WL_MAC_ADDR_LENGTH
26+
#define IFACE_MAC_ADDR_LENGTH 6
2727
#elif defined(ARDUINO_OPTA)
2828
#include <Ethernet.h>
2929
#define IFACE_MAC_ADDR_LENGTH 6

0 commit comments

Comments
 (0)