examples/bmp180/bmp180_main.c: Fix a printf format warning
This commit is contained in:
parent
1c30ff6fe4
commit
e4823bc62c
@ -38,6 +38,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -66,7 +67,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Pressure value = %05d\n", sample);
|
printf("Pressure value = %05" PRId32 "\n", sample);
|
||||||
|
|
||||||
usleep(500000);
|
usleep(500000);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user