Skip to content

Commit

Permalink
Add support for megaavr arch
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepmistry committed Mar 19, 2019
1 parent 40099b5 commit d9a708e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/ECCX08.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d9a708e

Please sign in to comment.