mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
drivers/foc_dummy.c: fix compilation for CONFIG_MOTOR_FOC_BEMF_SENSE=y
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
c09f7f7864
commit
d942e373bc
@@ -474,7 +474,7 @@ static void foc_dummy_notifier_handler(FAR struct foc_dev_s *dev)
|
|||||||
/* Call FOC notifier */
|
/* Call FOC notifier */
|
||||||
|
|
||||||
#ifdef CONFIG_MOTOR_FOC_BEMF_SENSE
|
#ifdef CONFIG_MOTOR_FOC_BEMF_SENSE
|
||||||
sim->cb->notifier(dev, sim->current, sim->voltage);
|
sim->cb->notifier(dev, sim->current, sim->volt);
|
||||||
#else
|
#else
|
||||||
sim->cb->notifier(dev, sim->current, NULL);
|
sim->cb->notifier(dev, sim->current, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user