Skip to content

Commit

Permalink
Fix DC abort logic for Secure Element (#459)
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.

Co-authored-by: Alejandro S. Concepcion Rodriguez <[email protected]>
  • Loading branch information
asconcepcion and Alejandro S. Concepcion Rodriguez committed Jul 10, 2024
1 parent bfae937 commit cf738c8
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 cf738c8

Please sign in to comment.