You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/10/17 06:23:48 UTC

[nuttx-apps] 01/03: examples/foc: add warning if no controller enabled

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 4c4976a4e9a84c16f6a535b1e34493c27d5ea5ab
Author: raiden00pl <ra...@railab.me>
AuthorDate: Tue Oct 10 13:14:51 2023 +0200

    examples/foc: add warning if no controller enabled
---
 examples/foc/foc_thr.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/foc/foc_thr.c b/examples/foc/foc_thr.c
index a84efc2a7..7fe5a31c4 100644
--- a/examples/foc/foc_thr.c
+++ b/examples/foc/foc_thr.c
@@ -46,6 +46,10 @@
 #  define CONFIG_EXAMPLES_FOC_FIXED16_INST (0)
 #endif
 
+#if CONFIG_EXAMPLES_FOC_FLOAT_INST + CONFIG_EXAMPLES_FOC_FIXED16_INST == 0
+#  warning no control thread enabled !
+#endif
+
 /****************************************************************************
  * Extern Functions Prototypes
  ****************************************************************************/