From cf738c82927f5a0020a58fda88a5de65b11a4574 Mon Sep 17 00:00:00 2001 From: Ale Date: Wed, 10 Jul 2024 18:07:03 +0100 Subject: [PATCH] Fix DC abort logic for Secure Element (#459) If Secure Element is compiled into binary and enabled via configuration it shouldn't abort. Co-authored-by: Alejandro S. Concepcion Rodriguez --- source/main.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index eeecf125..152ad53a 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -414,14 +414,10 @@ int main(int argc, char *argv[]) attemptConnection(); #endif -#if defined(EXCLUDE_SECURE_ELEMENT) && !defined(DISABLE_MQTT) +#if !defined(EXCLUDE_SECURE_ELEMENT) && !defined(DISABLE_MQTT) if (config.config.secureElement.enabled) { - LOGM_ERROR( - TAG, - "*** %s: Secure Element configuration is enabled but feature is not compiled into binary.", - DC_FATAL_ERROR); - deviceClientAbort("Invalid configuration", EXIT_FAILURE); + LOG_INFO(TAG, "Secure element is enabled"); } else {