Smaller fixes

This commit is contained in:
dario 2024-05-30 10:54:07 +02:00
parent 6403df9561
commit 37a46c7d87
2 changed files with 2 additions and 11 deletions

View File

@ -132,8 +132,6 @@ namespace sta
*/ */
bool init(); bool init();
void delay();
/** /**
* @brief Set the oversampling rate. * @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. * @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 unit Specifies the unit for the pressure measurement. Default is hPa.
* @param cachedTemp Specifies if a cached temperature value should be used. * @return float The measured value in the specified unit.
* @return int32_t The measured value in the specified unit.
*/ */
float getPressure(Unit unit = Unit::hPa); float getPressure(Unit unit = Unit::hPa);
/** /**
* @brief Reads the current temperature value from the sensor. * @brief Reads the current temperature value from the sensor.
* *
* @return int32_t The measured temperature. * @return float The measured temperature.
* @note There are better sensors for temperature measurements than the MS56xx.
*/ */
float getTemperature(); float getTemperature();

View File

@ -44,11 +44,6 @@ namespace sta
return true; return true;
} }
void MS56xx::delay()
{
delay_(osrDelay());
}
void MS56xx::setOsr(OsrLevel osr) void MS56xx::setOsr(OsrLevel osr)
{ {
osr_ = osr; osr_ = osr;