Обновление 23.06.2026
This commit is contained in:
parent
ccd382221e
commit
9c6f14f3c5
|
|
@ -565,10 +565,12 @@ uint32_t getRandom32(tAdc0Task *env) {
|
||||||
|
|
||||||
uint32_t random = 0;
|
uint32_t random = 0;
|
||||||
|
|
||||||
osStatus_t status = osMessageQueueGet(env->queueRandom, &random, 0, 1500);
|
osStatus_t status = osMessageQueueGet(env->queueRandom, &random, 0, 0);
|
||||||
|
|
||||||
if (status == osOK) {
|
if (status == osOK) {
|
||||||
return random;
|
return random;
|
||||||
|
} else {
|
||||||
|
return 0x11223344;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue