mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-02 09:19:18 +00:00
merge ofw PR 3933
furi_hal_random: Wait for ready state and no errors before sampling by n1kolasM https://github.com/flipperdevices/flipperzero-firmware/pull/3933/files
This commit is contained in:
parent
d91e390690
commit
83b0e46ccd
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
#define TAG "FuriHalRandom"
|
||||
|
||||
static uint32_t furi_hal_random_read_rng(void) {
|
||||
while(LL_RNG_IsActiveFlag_CECS(RNG) && LL_RNG_IsActiveFlag_SECS(RNG) &&
|
||||
while(LL_RNG_IsActiveFlag_CECS(RNG) || LL_RNG_IsActiveFlag_SECS(RNG) ||
|
||||
!LL_RNG_IsActiveFlag_DRDY(RNG)) {
|
||||
/* Error handling as described in RM0434, pg. 582-583 */
|
||||
if(LL_RNG_IsActiveFlag_CECS(RNG)) {
|
||||
|
|
Loading…
Reference in a new issue