Skip to content

Commit c9ce958

Browse files
committed
csn: decode serial number from string
1 parent 347cf77 commit c9ce958

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bpid/csn.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
#include "csn.h"
12+
#include "hex/hex.h"
1213

1314
namespace arduino { namespace csn {
1415

@@ -22,7 +23,7 @@ namespace arduino { namespace csn {
2223
return false;
2324
}
2425
SecureElement se;
25-
if (!se.begin() || !se.serialNumber(in)) {
26+
if (!se.begin() || !arduino::hex::decode(se.serialNumber(), in, size)) {
2627
return false;
2728
}
2829
return true;

0 commit comments

Comments
 (0)