You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/17 17:39:34 UTC
[incubator-nuttx] branch master updated: drivers/motor/foc/foc_dummy.c: remove unused variable
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 45a24c1894 drivers/motor/foc/foc_dummy.c: remove unused variable
45a24c1894 is described below
commit 45a24c18944bd84370f1589308f5edc561e14ea4
Author: raiden00pl <ra...@railab.me>
AuthorDate: Thu Nov 17 11:27:03 2022 +0100
drivers/motor/foc/foc_dummy.c: remove unused variable
---
drivers/motor/foc/foc_dummy.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/motor/foc/foc_dummy.c b/drivers/motor/foc/foc_dummy.c
index 8a9a6040ac..91a69579d2 100644
--- a/drivers/motor/foc/foc_dummy.c
+++ b/drivers/motor/foc/foc_dummy.c
@@ -647,14 +647,9 @@ void foc_dummy_update(void)
{
FAR struct foc_dev_s *dev = NULL;
FAR struct foc_dummy_data_s *sim = NULL;
- static uint32_t cntr = 0;
int i = 0;
irqstate_t flags;
- /* Increase local counter */
-
- cntr += 1;
-
flags = enter_critical_section();
/* Update all FOC instances */