Cosmetic change

This commit is contained in:
GOB
2024-05-09 13:24:12 +09:00
parent 8dd1191727
commit ea81aa4dff
4 changed files with 19 additions and 18 deletions
+4 -4
View File
@@ -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.
+2 -2
View File
@@ -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 <M5Unified.h>
#include <M5UnitUnified.h>
-1
View File
@@ -1,3 +1,2 @@
// setup.loop in SCD4x.cpp
#include <M5UnitUnified.h>
+13 -11
View File
@@ -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;