mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
drivers/motor/foc/foc_dummy.c: remove unused variable
This commit is contained in:
@@ -647,14 +647,9 @@ void foc_dummy_update(void)
|
|||||||
{
|
{
|
||||||
FAR struct foc_dev_s *dev = NULL;
|
FAR struct foc_dev_s *dev = NULL;
|
||||||
FAR struct foc_dummy_data_s *sim = NULL;
|
FAR struct foc_dummy_data_s *sim = NULL;
|
||||||
static uint32_t cntr = 0;
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
|
|
||||||
/* Increase local counter */
|
|
||||||
|
|
||||||
cntr += 1;
|
|
||||||
|
|
||||||
flags = enter_critical_section();
|
flags = enter_critical_section();
|
||||||
|
|
||||||
/* Update all FOC instances */
|
/* Update all FOC instances */
|
||||||
|
|||||||
Reference in New Issue
Block a user