mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
f139e56cd6
commit
fb0c1e10de
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue