Skip to content

Commit

Permalink
Rename headers
Browse files Browse the repository at this point in the history
  • Loading branch information
GOB52 committed Aug 20, 2024
1 parent 8753588 commit b7a28b0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion examples/UnitUnified/Ameter/Ameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@

#include <M5Unified.h>
#include <M5UnitUnified.h>
#include <unit/unit_Ameter.hpp>
#include <M5UnitUnifiedMETER.h>
#if !defined(USING_M5HAL)
#include <Wire.h>
#endif
#include <cmath>

using namespace m5::unit::ads111x;

Expand Down
2 changes: 1 addition & 1 deletion examples/UnitUnified/Vmeter/Vmeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <M5Unified.h>
#include <M5UnitUnified.h>
#include <unit/unit_Vmeter.hpp>
#include <M5UnitUnifiedMETER.h>
#if !defined(USING_M5HAL)
#include <Wire.h>
#endif
Expand Down
8 changes: 4 additions & 4 deletions src/M5UnitMETER.h → src/M5UnitUnifiedMETER.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* SPDX-License-Identifier: MIT
*/
/*!
@file M5UnitMETER.h
@file M5UnitUnifiedMETER.h
*/
#ifndef M5_UNIT_METER_H
#define M5_UNIT_METER_H
#ifndef M5_UNIT_UNIFIED_METER_H
#define M5_UNIT_UNIFIED_METER_H
#ifdef __cplusplus
#include "M5UnitMETER.hpp"
#include "M5UnitUnifiedMETER.hpp"
#else
#error M5UnitMETER requires a C++ compiler, please change file extension to .cc or .cpp
#endif
Expand Down
6 changes: 3 additions & 3 deletions src/M5UnitMETER.hpp → src/M5UnitUnifiedMETER.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
* SPDX-License-Identifier: MIT
*/
/*!
@file M5UnitMETER.hpp
@file M5UnitUnifiedMETER.hpp
@brief Main header of M5UnitMETER
@mainpage M5UnitMETER
Library for UnitMETER using M5UnitUnified.
*/
#ifndef M5_UNIT_METER_HPP
#define M5_UNIT_METER_HPP
#ifndef M5_UNIT_UNIFIED_METER_HPP
#define M5_UNIT_UNIFIED_METER_HPP

#include "unit/unit_Ameter.hpp"
#include "unit/unit_Vmeter.hpp"
Expand Down

0 comments on commit b7a28b0

Please sign in to comment.