1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00

Merge pull request #13302 from Einhornhool/cryptoauth-device-conf

tests/pkg_cryptoauthlib_internal_tests: add unsupported device handling
This commit is contained in:
benpicco 2020-02-06 18:33:35 +01:00 committed by GitHub
commit 615739a961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@
* @}
*/
#include <stdio.h>
#include "cryptoauthlib_test.h"
int main(void)
@ -26,9 +27,13 @@ int main(void)
if (ATCA_DEVTYPE == ATECC608A) {
atca_run_cmd("608");
}
else {
else if (ATCA_DEVTYPE == ATECC508A) {
atca_run_cmd("508");
}
else {
printf("This device is currently not supported.");
return 0;
}
atca_run_cmd("unit");