Fix build when MESHTASTIC_EXCLUDE_PKI is defined

This commit is contained in:
Jason B. Cox
2025-11-20 12:26:07 -08:00
parent 2b8806486d
commit 066da492d5
4 changed files with 9 additions and 1 deletions

View File

@@ -963,6 +963,7 @@ void setup()
i2cScanner.reset();
#endif
#if !defined(MESHTASTIC_EXCLUDE_PKI)
// warn the user about a low entropy key
if (nodeDB->keyIsLowEntropy && !nodeDB->hasWarned) {
LOG_WARN(LOW_ENTROPY_WARNING);
@@ -973,6 +974,7 @@ void setup()
service->sendClientNotification(cn);
nodeDB->hasWarned = true;
}
#endif
// buttons are now inputBroker, so have to come after setupModules
#if HAS_BUTTON