diff --git a/include/sta/drivers/MS56xx.hpp b/include/sta/drivers/MS56xx.hpp index b70005f..2e5069b 100644 --- a/include/sta/drivers/MS56xx.hpp +++ b/include/sta/drivers/MS56xx.hpp @@ -252,11 +252,6 @@ namespace sta OsrLevel osr_; Intf intf_; - float dT_; - float dTInit_; - bool pressReq_ = false; - bool tempReq_ = false; - // Pressure at sealevel. Use the standard atmosphere per default. float sealevel_ = 1013.25; diff --git a/src/MS56xx.cpp b/src/MS56xx.cpp index aeb1b9b..bb593f9 100644 --- a/src/MS56xx.cpp +++ b/src/MS56xx.cpp @@ -9,7 +9,7 @@ namespace sta { - MS56xx::MS56xx(SPIDevice * device, Version version, DelayUsFunc delay, OsrLevel osr = OsrLevel::_1024) + MS56xx::MS56xx(SPIDevice * device, Version version, DelayUsFunc delay, OsrLevel osr /* = OsrLevel::_1024 */) : device_{device}, version_{version}, delay_{delay}, @@ -77,7 +77,7 @@ namespace sta busRead(MS56xx::Operations::ADC_RESULT, buffer, 3); uint32_t D2 = buffer[0] << 16 | buffer[1] << 8 | buffer[2]; - dT_ = D2 - C_[5]; + float dT_ = D2 - C_[5]; requestData(PRESSURE); busRead(MS56xx::Operations::ADC_RESULT, buffer, 3); @@ -102,7 +102,7 @@ namespace sta uint32_t D2 = buffer[0] << 16 | buffer[1] << 8 | buffer[2]; - dT_ = D2 - C_[5]; + float dT_ = D2 - C_[5]; return (2000 + dT_ * C_[6]) * 0.01; }