don't call LOG_ERROR when the console is not setup() yet.

This commit is contained in:
Thomas Göttgens
2026-04-14 08:31:19 +02:00
parent 2f5dc2ace6
commit 0f7a6d8b3b
+2 -1
View File
@@ -48,7 +48,8 @@ bool mixWithLoRaEntropy(uint8_t *buffer, size_t length)
// and return false so callers know no extra mixing occurred.
RadioLibInterface *radio = RadioLibInterface::instance;
if (!radio) {
LOG_ERROR("No radio instance available to provide entropy");
// Intentionally silent: this path runs during portduinoSetup() before the
// console/SerialConsole is initialized, so LOG_* here would dereference a null pointer.
return false;
}