Clarify behavior when no radio instance is present

Add comment explaining silent behavior when no radio instance is available.
This commit is contained in:
Thomas Göttgens
2026-04-14 12:19:58 +02:00
committed by GitHub
co-authored by GitHub
parent 77f378dd53
commit d6cf67b6bc
+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;
}