apps: examples: lis3dsh_reader: fix nxstyle errors

fix errors reported by the nxstyle tool

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2022-03-09 08:43:28 +00:00 committed by Xiang Xiao
parent f9baa422c1
commit 4f0a18c9bb

View File

@ -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>
@ -33,6 +33,10 @@
*
****************************************************************************/
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <sys/ioctl.h>
@ -48,6 +52,10 @@
#include <nuttx/sensors/lis3dsh.h>
/****************************************************************************
* Public Functions
****************************************************************************/
/****************************************************************************
* lis3dsh_reader_main
****************************************************************************/
@ -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);