Skip to content

Commit d6cf67b

Browse files
authored
Clarify behavior when no radio instance is present
Add comment explaining silent behavior when no radio instance is available.
1 parent 77f378d commit d6cf67b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mesh/HardwareRNG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ bool mixWithLoRaEntropy(uint8_t *buffer, size_t length)
4848
// and return false so callers know no extra mixing occurred.
4949
RadioLibInterface *radio = RadioLibInterface::instance;
5050
if (!radio) {
51-
LOG_ERROR("No radio instance available to provide entropy");
51+
// Intentionally silent: this path runs during portduinoSetup() before the
52+
// console/SerialConsole is initialized, so LOG_* here would dereference a null pointer.
5253
return false;
5354
}
5455

0 commit comments

Comments
 (0)