Skip to content

Commit

Permalink
Secure Element feature build bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshGandhi-AWS committed Jul 8, 2024
1 parent bfae937 commit 611df28
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,16 +414,8 @@ int main(int argc, char *argv[])
attemptConnection();
#endif

#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);
}
else
#if !defined(EXCLUDE_SECURE_ELEMENT) && !defined(DISABLE_MQTT)
if (!config.config.secureElement.enabled)
{
LOG_INFO(TAG, "Provisioning with Secure Elements is disabled");
}
Expand Down

0 comments on commit 611df28

Please sign in to comment.