From b240b3fc3ca4dfb46ff086ab90e93e1955c128e3 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 1 Dec 2015 13:36:52 +0100 Subject: [PATCH] MPU6K: Fix formatting --- src/drivers/mpu6000/mpu6000.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp index 3d3bf24ada..1d948bb7aa 100644 --- a/src/drivers/mpu6000/mpu6000.cpp +++ b/src/drivers/mpu6000/mpu6000.cpp @@ -1913,14 +1913,12 @@ MPU6000::measure() arb.scaling = _accel_range_scale; arb.range_m_s2 = _accel_range_m_s2; - if(is_icm_device()) // if it is an ICM20608 - { - _last_temperature = (report.temp) / 326.8f + 25.0f; - } - else // If it is an MPU6000 - { - _last_temperature = (report.temp) / 361.0f + 35.0f; - } + if (is_icm_device()) { // if it is an ICM20608 + _last_temperature = (report.temp) / 326.8f + 25.0f; + + } else { // If it is an MPU6000 + _last_temperature = (report.temp) / 361.0f + 35.0f; + } arb.temperature_raw = report.temp; arb.temperature = _last_temperature;