Skip to content

Commit

Permalink
Fix DC abort logic for Secure Element
Browse files Browse the repository at this point in the history
If Secure Element is compiled into binary and enabled via configuration
it shouldn't abort.
  • Loading branch information
Alejandro S. Concepcion Rodriguez committed Jun 19, 2024
1 parent cf76107 commit fbdf79b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit fbdf79b

Please sign in to comment.