From 37a46c7d870251551c4c9500a68f9efd4f7d51e4 Mon Sep 17 00:00:00 2001 From: dario Date: Thu, 30 May 2024 10:54:07 +0200 Subject: [PATCH] Smaller fixes --- include/sta/drivers/MS56xx.hpp | 8 ++------ src/MS56xx.cpp | 5 ----- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/include/sta/drivers/MS56xx.hpp b/include/sta/drivers/MS56xx.hpp index 2e5069b..3452558 100644 --- a/include/sta/drivers/MS56xx.hpp +++ b/include/sta/drivers/MS56xx.hpp @@ -132,8 +132,6 @@ namespace sta */ bool init(); - void delay(); - /** * @brief Set the oversampling rate. * @@ -145,16 +143,14 @@ namespace sta * @brief Reads the current pressure value from the sensor. Obtains the temperature value from the interal sensor. * * @param unit Specifies the unit for the pressure measurement. Default is hPa. - * @param cachedTemp Specifies if a cached temperature value should be used. - * @return int32_t The measured value in the specified unit. + * @return float The measured value in the specified unit. */ float getPressure(Unit unit = Unit::hPa); /** * @brief Reads the current temperature value from the sensor. * - * @return int32_t The measured temperature. - * @note There are better sensors for temperature measurements than the MS56xx. + * @return float The measured temperature. */ float getTemperature(); diff --git a/src/MS56xx.cpp b/src/MS56xx.cpp index bda5b69..409df08 100644 --- a/src/MS56xx.cpp +++ b/src/MS56xx.cpp @@ -44,11 +44,6 @@ namespace sta return true; } - void MS56xx::delay() - { - delay_(osrDelay()); - } - void MS56xx::setOsr(OsrLevel osr) { osr_ = osr;