mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/pkg_cryptoauthlib_internal: add unsupported device handling
This commit is contained in:
parent
23aa05126d
commit
8c1246d6a5
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user