Skip to content

Commit 29be7a4

Browse files
committed
Do not include Arduino_SecureElement if device not supported
1 parent 4db7604 commit 29be7a4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/bpid/csn.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
#pragma once
1212

13-
#include <Arduino.h>
14-
#include <Arduino_SecureElement.h>
13+
1514

1615
namespace arduino { namespace csn {
1716
/*
@@ -29,13 +28,18 @@ namespace arduino { namespace csn {
2928
defined(ARDUINO_PORTENTA_H7_M7) || \
3029
defined(ARDUINO_OPTA) || \
3130
defined(ARDUINO_GIGA)
31+
#include <Arduino_SecureElement.h>
3232
#define CRYPTO_SN_SIZE 9
3333
#elif defined(ARDUINO_PORTENTA_C33) || \
3434
defined(ARDUINO_NICLA_VISION)
35+
#include <Arduino_SecureElement.h>
3536
#define CRYPTO_SN_SIZE SE05X_SN_LENGTH
3637
#elif defined(ARDUINO_UNOR4_WIFI)
38+
#include <Arduino_SecureElement.h>
3739
#define CRYPTO_SN_SIZE 6
3840
#else
41+
#include <stdint.h>
42+
#include <stddef.h>
3943
#define CRYPTO_SN_SIZE 0
4044
#endif
4145

0 commit comments

Comments
 (0)