drivers/foc_dummy.c: fix compilation for CONFIG_MOTOR_FOC_BEMF_SENSE=y

This commit is contained in:
raiden00pl 2024-06-01 11:09:28 +02:00 committed by Alan Carvalho de Assis
parent c09f7f7864
commit d942e373bc
1 changed files with 1 additions and 1 deletions

View File

@ -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