diff --git a/examples/hdc1008_demo/hdc1008_main.c b/examples/hdc1008_demo/hdc1008_main.c index f34daf32e..cf5c558c4 100644 --- a/examples/hdc1008_demo/hdc1008_main.c +++ b/examples/hdc1008_demo/hdc1008_main.c @@ -99,7 +99,7 @@ int main(int argc, FAR char *argv[]) printf("Temperature and humidity (ioctl)\n" "================================\n"); - printf("t=%d.%d, h=%d.%d\n\n", + printf("t=%d.%02d, h=%d.%d\n\n", data.temperature / 100, data.temperature % 100, data.humidity / 10, data.humidity % 10);