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 authored and Ramon Roche committed 2026-09-03 12:31:07 -07:00
1 parent 33010e6dea
commit b12ec6b50c
1 file changed
+2 -2
@@ -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;
}