Skip to content

Commit d9a708e

Browse files
committed
Add support for megaavr arch
1 parent 40099b5 commit d9a708e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ sentence=Arduino Library for the Atmel/Microchip ECC508 and ECC608 crypto chips
66
paragraph=
77
category=Communication
88
url=https://github.com/arduino-libraries/ArduinoECCX08
9-
architectures=samd
9+
architectures=samd,megaavr
1010
includes=ArduinoECCX08.h

src/ECCX08.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ int ECCX08Class::random(byte data[], size_t length)
151151
return 0;
152152
}
153153

154-
int copyLength = min(32, length);
154+
int copyLength = min(32, (int)length);
155155
memcpy(data, response, copyLength);
156156

157157
length -= copyLength;

0 commit comments

Comments
 (0)