From de836fed72174ac136a5ab4dfa50f725770eff1e Mon Sep 17 00:00:00 2001 From: Ouss4 Date: Thu, 16 Jan 2020 20:30:55 +0000 Subject: [PATCH] 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 46961d9c8..24d57039e 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",