Skip to content

Commit cf738c8

Browse files
asconcepcionAlejandro S. Concepcion Rodriguez
and
Alejandro S. Concepcion Rodriguez
authored
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 <[email protected]>
1 parent bfae937 commit cf738c8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source/main.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,10 @@ int main(int argc, char *argv[])
414414
attemptConnection();
415415
#endif
416416

417-
#if defined(EXCLUDE_SECURE_ELEMENT) && !defined(DISABLE_MQTT)
417+
#if !defined(EXCLUDE_SECURE_ELEMENT) && !defined(DISABLE_MQTT)
418418
if (config.config.secureElement.enabled)
419419
{
420-
LOGM_ERROR(
421-
TAG,
422-
"*** %s: Secure Element configuration is enabled but feature is not compiled into binary.",
423-
DC_FATAL_ERROR);
424-
deviceClientAbort("Invalid configuration", EXIT_FAILURE);
420+
LOG_INFO(TAG, "Secure element is enabled");
425421
}
426422
else
427423
{

0 commit comments

Comments
 (0)