From 8c1246d6a500998051fc7b064946da4be17e6c90 Mon Sep 17 00:00:00 2001 From: Einhornhool <26007369+Einhornhool@users.noreply.github.com> Date: Wed, 5 Feb 2020 23:50:22 +0100 Subject: [PATCH] tests/pkg_cryptoauthlib_internal: add unsupported device handling --- tests/pkg_cryptoauthlib_internal-tests/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/pkg_cryptoauthlib_internal-tests/main.c b/tests/pkg_cryptoauthlib_internal-tests/main.c index 03af005c5d..2377ebebf6 100644 --- a/tests/pkg_cryptoauthlib_internal-tests/main.c +++ b/tests/pkg_cryptoauthlib_internal-tests/main.c @@ -18,6 +18,7 @@ * @} */ +#include #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");