From 1eac56b37af4495352531968e59f108f52f6226c Mon Sep 17 00:00:00 2001 From: Nicolas Schurando Date: Sat, 16 Dec 2023 14:22:20 +0100 Subject: [PATCH] Renamed class. --- keywords.txt | 2 +- library.json | 1 + library.properties | 1 + src/{tic.cpp => tic_reader.cpp} | 6 +++--- src/{tic.h => tic_reader.h} | 6 +++--- 5 files changed, 9 insertions(+), 7 deletions(-) rename src/{tic.cpp => tic_reader.cpp} (98%) rename src/{tic.h => tic_reader.h} (92%) diff --git a/keywords.txt b/keywords.txt index 58a488d..289199e 100644 --- a/keywords.txt +++ b/keywords.txt @@ -1,3 +1,3 @@ -tic KEYWORD1 +tic_reader KEYWORD1 setup KEYWORD2 process KEYWORD2 diff --git a/library.json b/library.json index b7d1c30..277d386 100644 --- a/library.json +++ b/library.json @@ -9,6 +9,7 @@ }, "frameworks": "arduino", "platforms": "*", + "dependencies": [], "build": { "includeDir": "src" } diff --git a/library.properties b/library.properties index f08472a..36ffa8b 100644 --- a/library.properties +++ b/library.properties @@ -7,3 +7,4 @@ paragraph= category=Data Processing url=https://github.com/sitronlabs/SitronLabs_Enedis_TIC_Arduino_Library architectures=* +depends= diff --git a/src/tic.cpp b/src/tic_reader.cpp similarity index 98% rename from src/tic.cpp rename to src/tic_reader.cpp index 7623a3c..f9d43bd 100644 --- a/src/tic.cpp +++ b/src/tic_reader.cpp @@ -1,12 +1,12 @@ /* Self header */ -#include "tic.h" +#include "tic_reader.h" /** * @brief * @param[in] uart * @return */ -int tic::setup(Stream &uart) { +int tic_reader::setup(Stream &uart) { /* Save uart */ m_stream = &uart; @@ -23,7 +23,7 @@ int tic::setup(Stream &uart) { * @param[out] message * @return */ -int tic::process(struct tic_message &message) { +int tic_reader::process(struct tic_message &message) { /* Ensure setup has been performed */ if (m_stream == NULL) { diff --git a/src/tic.h b/src/tic_reader.h similarity index 92% rename from src/tic.h rename to src/tic_reader.h index 172626f..65730f7 100644 --- a/src/tic.h +++ b/src/tic_reader.h @@ -1,5 +1,5 @@ -#ifndef TIC_H -#define TIC_H +#ifndef TIC_READER_H +#define TIC_READER_H /* Arduino libraries */ #include @@ -19,7 +19,7 @@ struct tic_message { /** * */ -class tic { +class tic_reader { public: /* Setup */ int setup(Stream &uart);