This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 5dd4813b3 examples/foc: fix wrong nxscope functions for fixed16
5dd4813b3 is described below

commit 5dd4813b3414564e0946bae850a3fb75f0f47755
Author: raiden00pl <raide...@railab.me>
AuthorDate: Mon Oct 16 15:05:48 2023 +0200

    examples/foc: fix wrong nxscope functions for fixed16
---
 examples/foc/foc_fixed16_thr.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/foc/foc_fixed16_thr.c b/examples/foc/foc_fixed16_thr.c
index 569b9e70a..66ce7feab 100644
--- a/examples/foc/foc_fixed16_thr.c
+++ b/examples/foc/foc_fixed16_thr.c
@@ -253,11 +253,11 @@ static void foc_fixed16_nxscope(FAR struct foc_nxscope_s 
*nxs,
 #endif
 #if (CONFIG_EXAMPLES_FOC_NXSCOPE_CFG & FOC_NXSCOPE_DQREF)
   ptr = (FAR b16_t *)&motor->dq_ref;
-  nxscope_put_vb16_t(&nxs->nxs, i++, ptr, 2);
+  nxscope_put_vb16(&nxs->nxs, i++, ptr, 2);
 #endif
 #if (CONFIG_EXAMPLES_FOC_NXSCOPE_CFG & FOC_NXSCOPE_VDQCOMP)
   ptr = (FAR b16_t *)&motor->vdq_comp;
-  nxscope_put_vb16_t(&nxs->nxs, i++, ptr, 2);
+  nxscope_put_vb16(&nxs->nxs, i++, ptr, 2);
 #endif
 #if (CONFIG_EXAMPLES_FOC_NXSCOPE_CFG & FOC_NXSCOPE_SVM3)
   b16_t svm3_tmp[4];
@@ -275,7 +275,7 @@ static void foc_fixed16_nxscope(FAR struct foc_nxscope_s 
*nxs,
   svm3_tmp[3] = motor->mod_state.d_w;
 
   ptr = svm3_tmp;
-  nxscope_put_vfloat(&nxs->nxs, i++, ptr, 4);
+  nxscope_put_vb16(&nxs->nxs, i++, ptr, 4);
 #endif
 
   nxscope_unlock(&nxs->nxs);

Reply via email to