mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
examples/lis3dsh_reader/lis3dsh_reader_main.c: Make an infinite loop
look similair to the rest.
This commit is contained in:
parent
77985058f3
commit
de836fed72
1 changed files with 1 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue