Skip to content

Temporary fixes to build with core 1.2.1 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 20, 2024
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