diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp index 4461dc10b0..b6642e2bbd 100644 --- a/src/drivers/mpu6000/mpu6000.cpp +++ b/src/drivers/mpu6000/mpu6000.cpp @@ -1778,7 +1778,7 @@ MPU6000::print_info() (unsigned)_checked_values[i]); } } - ::printf("temperature: %.1f\n", _last_temperature); + ::printf("temperature: %.1f\n", (double)_last_temperature); } void