Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@@ -48,10 +48,11 @@ bool mixWithLoRaEntropy(uint8_t *buffer, size_t length)
|
|||||||
// and return false so callers know no extra mixing occurred.
|
// and return false so callers know no extra mixing occurred.
|
||||||
RadioLibInterface *radio = RadioLibInterface::instance;
|
RadioLibInterface *radio = RadioLibInterface::instance;
|
||||||
if (!radio) {
|
if (!radio) {
|
||||||
// This path can run during portduinoSetup() before the console is initialized.
|
// This path can run during portduinoSetup() before the console is initialized,
|
||||||
#ifndef PIO_UNIT_TESTING
|
// both for unit-test binaries and the simulator's meshtasticd; LOG_* dereferences `console`.
|
||||||
LOG_ERROR("No radio instance available to provide entropy");
|
if (console) {
|
||||||
#endif
|
LOG_ERROR("No radio instance available to provide entropy");
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user