diff --git a/library.properties b/library.properties index 4d612cf..45a54a6 100644 --- a/library.properties +++ b/library.properties @@ -6,5 +6,5 @@ sentence=Arduino Library for the Atmel/Microchip ECC508 and ECC608 crypto chips paragraph= category=Communication url=https://github.com/arduino-libraries/ArduinoECCX08 -architectures=samd +architectures=samd,megaavr includes=ArduinoECCX08.h diff --git a/src/ECCX08.cpp b/src/ECCX08.cpp index 651990b..2e814a9 100644 --- a/src/ECCX08.cpp +++ b/src/ECCX08.cpp @@ -151,7 +151,7 @@ int ECCX08Class::random(byte data[], size_t length) return 0; } - int copyLength = min(32, length); + int copyLength = min(32, (int)length); memcpy(data, response, copyLength); length -= copyLength;