You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2024/06/02 12:27:46 UTC
(nuttx) 05/06: drivers/foc_dummy.c: fix compilation for CONFIG_MOTOR_FOC_BEMF_SENSE=y
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d942e373bcfef72c15091a497cf537480ce575e1
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sat Jun 1 11:09:28 2024 +0200
drivers/foc_dummy.c: fix compilation for CONFIG_MOTOR_FOC_BEMF_SENSE=y
---
drivers/motor/foc/foc_dummy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/motor/foc/foc_dummy.c b/drivers/motor/foc/foc_dummy.c
index 9648feff6f..466390e776 100644
--- a/drivers/motor/foc/foc_dummy.c
+++ b/drivers/motor/foc/foc_dummy.c
@@ -474,7 +474,7 @@ static void foc_dummy_notifier_handler(FAR struct foc_dev_s *dev)
/* Call FOC notifier */
#ifdef CONFIG_MOTOR_FOC_BEMF_SENSE
- sim->cb->notifier(dev, sim->current, sim->voltage);
+ sim->cb->notifier(dev, sim->current, sim->volt);
#else
sim->cb->notifier(dev, sim->current, NULL);
#endif