From f9a79c75283c5fff58acf1bec04e7e6fbebf4924 Mon Sep 17 00:00:00 2001 From: GOB Date: Fri, 6 Dec 2024 19:34:24 +0900 Subject: [PATCH] Cosmetic change --- src/unit/unit_QMP6988.cpp | 7 +++---- src/unit/unit_QMP6988.hpp | 2 +- src/unit/unit_SHT40.hpp | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/unit/unit_QMP6988.cpp b/src/unit/unit_QMP6988.cpp index fb86581..6bcb99e 100644 --- a/src/unit/unit_QMP6988.cpp +++ b/src/unit/unit_QMP6988.cpp @@ -250,12 +250,11 @@ bool UnitQMP6988::begin() return false; } - if (!softReset()) { M5_LIB_LOGE("Failed to reset"); return false; } - + if (!read_calibration(_calibration)) { M5_LIB_LOGE("Failed to read_calibration"); return false; @@ -517,8 +516,8 @@ bool UnitQMP6988::softReset() auto ret = writeRegister8(SOFT_RESET, v); M5_LIB_LOGD("Reset causes a NO ACK or timeout error, but ignore it"); (void)ret; - m5::utility::delay(10); // Need delay - if(writeRegister(SOFT_RESET, 0x00)){ + m5::utility::delay(10); // Need delay + if (writeRegister(SOFT_RESET, 0x00)) { _periodic = false; return true; } diff --git a/src/unit/unit_QMP6988.hpp b/src/unit/unit_QMP6988.hpp index 2febe3d..44f11a3 100644 --- a/src/unit/unit_QMP6988.hpp +++ b/src/unit/unit_QMP6988.hpp @@ -32,7 +32,7 @@ enum class PowerMode : uint8_t { /*! @enum Oversampling @brief Oversampling value - @warning + @warning */ enum class Oversampling : uint8_t { Skipped, //!< Skipped (No measurements are performed) diff --git a/src/unit/unit_SHT40.hpp b/src/unit/unit_SHT40.hpp index aa9df9e..2061507 100644 --- a/src/unit/unit_SHT40.hpp +++ b/src/unit/unit_SHT40.hpp @@ -224,7 +224,7 @@ class UnitSHT40 : public Component, public PeriodicMeasurementAdapter