From d942e373bcfef72c15091a497cf537480ce575e1 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sat, 1 Jun 2024 11:09:28 +0200 Subject: [PATCH] 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