diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index a521adf..b801b2d 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -7,10 +7,10 @@ jobs: strategy: matrix: path: - - check: './src' # path to include - exclude: '' # path to exclude - - check: './examples' # path to include - exclude: '' # path to exclude + - check: 'src' + exclude: '' + - check: 'examples' + exclude: '' steps: - uses: actions/checkout@v3.1.0 - name: Run clang-format style check for C/C++/Protobuf programs. diff --git a/examples/SCD4x/SCD4x.cpp b/examples/SCD4x/SCD4x.cpp index 856955f..84c831c 100644 --- a/examples/SCD4x/SCD4x.cpp +++ b/examples/SCD4x/SCD4x.cpp @@ -6,8 +6,8 @@ license information. */ -#define USING_PAHUB (2) // Connection channel number for use via PaHub. -#define USING_M5HAL // When using M5HAL +#define USING_PAHUB (2) // Connection channel number for use via PaHub. +#define USING_M5HAL // When using M5HAL #include #include diff --git a/examples/SCD4x/SCD4x.ino b/examples/SCD4x/SCD4x.ino index c4296e5..535b3b5 100644 --- a/examples/SCD4x/SCD4x.ino +++ b/examples/SCD4x/SCD4x.ino @@ -1,3 +1,2 @@ // setup.loop in SCD4x.cpp #include - diff --git a/src/M5UnitUnified.hpp b/src/M5UnitUnified.hpp index 1b9096e..0e52a28 100644 --- a/src/M5UnitUnified.hpp +++ b/src/M5UnitUnified.hpp @@ -5,7 +5,7 @@ @mainpage M5UnitUnfied Library for abstracted M5 units. C++11 or later. - + @copyright M5Stack. All rights reserved. @license Licensed under the MIT license. See LICENSE file in the project root for full license information. @@ -33,9 +33,9 @@ class UnitUnified { ///@name Constructor ///@{ - UnitUnified() = default; - UnitUnified(const UnitUnified&) = delete; - UnitUnified(UnitUnified&&) = default; + UnitUnified() = default; + UnitUnified(const UnitUnified&) = delete; + UnitUnified(UnitUnified&&) = default; ///@} ///@name Assignment @@ -46,24 +46,26 @@ class UnitUnified { ///@name Adding unit to be managed ///@{ - //bool add(Component& u, Port& port); + // bool add(Component& u, Port& port); bool add(Component& u, m5::hal::bus::Bus* bus); - // [[deprecated("use add(Component& u, Port& port) or add(Component& u, m5::hal::bus::Bus* bus);")]] + // [[deprecated("use add(Component& u, Port& port) or add(Component& u, + // m5::hal::bus::Bus* bus);")]] bool add(Component& u, TwoWire& wire); ///@} - + bool begin(); void update(); //! @brief Output information for debug std::string debugInfo() const; - - protected: + + protected: bool add_children(Component& u); bool add(Component& u, m5::unit::Adapter* a); - std::string make_unit_info(const Component* u, const uint8_t indent = 0) const; - + std::string make_unit_info(const Component* u, + const uint8_t indent = 0) const; + protected: container_type _units;