mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-11 21:20:12 +00:00
examples/bmi160: Fix printf format warning
Fix printf format warning by -Wformat.
This commit is contained in:
parent
0dc9be9596
commit
814f10544e
1 changed files with 2 additions and 1 deletions
|
|
@ -38,6 +38,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <inttypes.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
@ -86,7 +87,7 @@ int main(int argc, FAR char *argv[])
|
|||
|
||||
if (prev != data.sensor_time)
|
||||
{
|
||||
printf("[%d] %d, %d, %d / %d, %d, %d\n",
|
||||
printf("[%" PRIu32 "] %d, %d, %d / %d, %d, %d\n",
|
||||
data.sensor_time,
|
||||
data.gyro.x, data.gyro.y, data.gyro.z,
|
||||
data.accel.x, data.accel.y, data.accel.z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue