You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/01/16 19:40:04 UTC

[incubator-nuttx-apps] branch master updated: examples/lis3dsh_reader/lis3dsh_reader_main.c: Make an infinite loop look similair to the rest.

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

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


The following commit(s) were added to refs/heads/master by this push:
     new de836fe  examples/lis3dsh_reader/lis3dsh_reader_main.c: Make an infinite loop look similair to the rest.
de836fe is described below

commit de836fed72174ac136a5ab4dfa50f725770eff1e
Author: Ouss4 <ab...@gmail.com>
AuthorDate: Thu Jan 16 20:30:55 2020 +0000

    examples/lis3dsh_reader/lis3dsh_reader_main.c: Make an infinite loop
    look similair to the rest.
---
 examples/lis3dsh_reader/lis3dsh_reader_main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/lis3dsh_reader/lis3dsh_reader_main.c b/examples/lis3dsh_reader/lis3dsh_reader_main.c
index 46961d9..24d5703 100644
--- a/examples/lis3dsh_reader/lis3dsh_reader_main.c
+++ b/examples/lis3dsh_reader/lis3dsh_reader_main.c
@@ -61,11 +61,10 @@ int main(int argc, FAR char *argv[])
     int16_t y;
     int16_t z;
   } acc_data;
-  int i;
 
   acc = fopen("/dev/acc0", "r");
 
-  for (i = 0; 1; i++)
+  for (; ; )
     {
       fread( &acc_data, 6, 1, acc );
       printf("x: %4d  y: %4d  z: %4d            \r",