Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/bpid/csn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
namespace arduino { namespace csn {

bool get(uint8_t *in, uint32_t size) {
#if defined ARDUINO_UNOR4_WIFI
return false;
#else
if (size < CRYPTO_SN_SIZE) {
return false;
}
Expand All @@ -21,6 +24,7 @@ namespace arduino { namespace csn {
return false;
}
return true;
#endif
}

}} // arduino::csn
2 changes: 1 addition & 1 deletion src/bpid/mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define IFACE_MAC_ADDR_LENGTH WL_MAC_ADDR_LENGTH
#elif defined(ARDUINO_UNOR4_WIFI)
#include <WiFi.h>
#define IFACE_MAC_ADDR_LENGTH WL_MAC_ADDR_LENGTH
#define IFACE_MAC_ADDR_LENGTH 6
#elif defined(ARDUINO_OPTA)
#include <Ethernet.h>
#define IFACE_MAC_ADDR_LENGTH 6
Expand Down
Loading