system/uorb: require that LIBC_FLOATINGPOINT be enabled for DEBUG_UORB

This change prevents users from trying to use the `uorb_listener`
application without having floating point printing enabled on systems
that do not have an FPU (systems with FPUs have `LIBC_FLOATINGPOINT`)
enabled by default. Solution dicussed and agreed in:
https://github.com/apache/nuttx/issues/15599.
This commit is contained in:
Matteo Golin 2025-02-06 15:36:30 -05:00 committed by Mateusz Szafoni
parent f139e56cd6
commit fb0c1e10de
2 changed files with 5 additions and 0 deletions

View file

@ -41,6 +41,7 @@ endif # UORB_TESTS
config DEBUG_UORB
bool "uorb debug output"
select LIBC_PRINT_EXTENSION
depends on LIBC_FLOATINGPOINT
default n
if DEBUG_UORB

View file

@ -49,6 +49,10 @@
#define ORB_TOP_WAIT_TIME 1000
#define ORB_DATA_DIR "/data/uorb/"
#if defined(CONFIG_DEBUG_UORB) && !defined(CONFIG_LIBC_FLOATINGPOINT)
#error "Enable CONFIG_LIBC_FLOATINGPOINT, required to see debug output"
#endif
/****************************************************************************
* Private Types
****************************************************************************/