fix(bootloader): Use PANIC() instead of up_assert() for NuttX 12.12.0

NuttX 12.12.0 changed up_assert ABI
This commit is contained in:
Peter van der Perk
2026-06-03 11:06:13 +02:00
committed by Ramon Roche
parent 33010e6dea
commit b12ec6b50c

View File

@@ -52,14 +52,14 @@
* The implementation panics rather than returning zeros: if anyone
* ever enables bootloader-side encryption without also wiring up a
* real RNG, silently handing out predictable bytes would be a
* serious security bug. up_assert() makes that mistake loud.
* serious security bug. PANIC() makes that mistake loud.
*/
size_t px4_get_secure_random(uint8_t *out, size_t outlen)
{
(void)out;
(void)outlen;
up_assert(__FILE__, __LINE__);
PANIC();
return 0;
}