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/01/23 16:44:47 UTC
[nuttx] branch master updated: stm32/foc: move the warning in the right place - should be in stm32f7
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.git
The following commit(s) were added to refs/heads/master by this push:
new aa7d4b40c1 stm32/foc: move the warning in the right place - should be in stm32f7
aa7d4b40c1 is described below
commit aa7d4b40c13b3731fb08460bfe45a3e63ddfd765
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Jan 23 15:41:12 2023 +0100
stm32/foc: move the warning in the right place - should be in stm32f7
---
arch/arm/src/stm32/stm32_foc.c | 2 --
arch/arm/src/stm32f7/stm32_foc.c | 3 +++
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/src/stm32/stm32_foc.c b/arch/arm/src/stm32/stm32_foc.c
index 12af6686c4..a80aaea990 100644
--- a/arch/arm/src/stm32/stm32_foc.c
+++ b/arch/arm/src/stm32/stm32_foc.c
@@ -601,8 +601,6 @@
#ifdef CONFIG_MOTOR_FOC_BEMF_SENSE
-# warning not tested on HW
-
/* Additional checks for BEMF sensing */
# if defined(CONFIG_STM32_FOC_FOC0) && defined(CONFIG_STM32_FOC_FOC1)
diff --git a/arch/arm/src/stm32f7/stm32_foc.c b/arch/arm/src/stm32f7/stm32_foc.c
index c282661e39..5e3881b7cf 100644
--- a/arch/arm/src/stm32f7/stm32_foc.c
+++ b/arch/arm/src/stm32f7/stm32_foc.c
@@ -427,6 +427,9 @@
#endif
#ifdef CONFIG_MOTOR_FOC_BEMF_SENSE
+
+# warning not tested on HW
+
/* Additional checks for BEMF sensing */
# if defined(CONFIG_STM32_FOC_FOC0) && defined(CONFIG_STM32_FOC_FOC1)