Skip to content

Commit

Permalink
apps: examples: lis3dsh_reader: fix nxstyle errors
Browse files Browse the repository at this point in the history
fix errors reported by the nxstyle tool

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
  • Loading branch information
jerpelea authored and xiaoxiang781216 committed Mar 9, 2022
1 parent f9baa42 commit 4f0a18c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions examples/lis3dsh_reader/lis3dsh_reader_main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* lis3dsh_reader_main.c
* apps/examples/lis3dsh_reader/lis3dsh_reader_main.c
*
* Copyright (C) 2017 Florian Olbrich. All rights reserved.
* Author: Florian Olbrich <florian.olbrich@oth-regensburg.de>
Expand Down Expand Up @@ -33,6 +33,10 @@
*
****************************************************************************/

/****************************************************************************
* Included Files
****************************************************************************/

#include <nuttx/config.h>

#include <sys/ioctl.h>
Expand All @@ -48,6 +52,10 @@

#include <nuttx/sensors/lis3dsh.h>

/****************************************************************************
* Public Functions
****************************************************************************/

/****************************************************************************
* lis3dsh_reader_main
****************************************************************************/
Expand All @@ -66,7 +74,7 @@ int main(int argc, FAR char *argv[])

for (; ; )
{
fread( &acc_data, 6, 1, acc );
fread(&acc_data, 6, 1, acc);
printf("x: %4d y: %4d z: %4d \r",
acc_data.x, acc_data.y, acc_data.z);
usleep(300);
Expand Down

0 comments on commit 4f0a18c

Please sign in to comment.