Skip to content

Commit

Permalink
fxos8700cq_test: Adjust rate and lint json output
Browse files Browse the repository at this point in the history
Change-Id: Iab80381e4f451ac186515cd5593434d80e4c7421
Relate-to: rzr/aframe-smart-home#3
Signed-off-by: Philippe Coval <rzr@users.sf.net>
  • Loading branch information
rzr committed Nov 17, 2020
1 parent 4a5152f commit fe13216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/fxos8700cq_test/fxos8700cq_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ int main(int argc, FAR char *argv[])
ret, sizeof(fxos8700cq_data), fd);
break;
}
printf("{ accel: [%d, %d, %d], magn: [%d, %d, %d] }\n",
printf("{\"accel\":[%d, %d, %d],\"magn\":[%d, %d, %d]}\n",
data.accel.x, data.accel.y, data.accel.z,
data.magn.x, data.magn.y, data.magn.z
);
fflush(stdout);
usleep(1000 / 25);
usleep(1000 * 1000 / 5);
}

close(fd);
Expand Down

0 comments on commit fe13216

Please sign in to comment.