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 2021/12/28 08:48:43 UTC
[incubator-nuttx-apps] 02/02: canutils: odb_decodepid: fix nxstyle issues
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-apps.git
commit 7b48a119acc8ffe6f4beb7d88f3d57dc5c24c562
Author: Eero Nurkkala <ee...@offcode.fi>
AuthorDate: Tue Dec 28 07:52:43 2021 +0200
canutils: odb_decodepid: fix nxstyle issues
Fix the following nxstyle issue on the file:
error: Operator/assignment must be followed with whitespace
Signed-off-by: Eero Nurkkala <ee...@offcode.fi>
---
canutils/libobd2/obd_decodepid.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/canutils/libobd2/obd_decodepid.c b/canutils/libobd2/obd_decodepid.c
index edea383..3a3439a 100644
--- a/canutils/libobd2/obd_decodepid.c
+++ b/canutils/libobd2/obd_decodepid.c
@@ -94,7 +94,7 @@ FAR char *obd_decode_pid(FAR struct obd_dev_s *dev, uint8_t pid)
break;
case OBD_PID_RPM:
- rpm = ((256 * dev->data[3]) + dev->data[4])/4;
+ rpm = ((256 * dev->data[3]) + dev->data[4]) / 4;
snprintf(g_data, MAXDATA, "%d", rpm);
#ifdef CONFIG_DEBUG_INFO
printf("RPM = %d\n", rpm);
@@ -109,7 +109,7 @@ FAR char *obd_decode_pid(FAR struct obd_dev_s *dev, uint8_t pid)
break;
case OBD_PID_THROTTLE_POSITION:
- snprintf(g_data, MAXDATA, "%d", (100 * dev->data[3])/255);
+ snprintf(g_data, MAXDATA, "%d", (100 * dev->data[3]) / 255);
#ifdef CONFIG_DEBUG_INFO
printf("Throttle position = %d\n", (100 * dev->data[3]) / 255);
#endif