Skip to content

Commit

Permalink
Renamed class.
Browse files Browse the repository at this point in the history
  • Loading branch information
nschurando committed Dec 16, 2023
1 parent 4e8fa36 commit 1eac56b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion keywords.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tic KEYWORD1
tic_reader KEYWORD1
setup KEYWORD2
process KEYWORD2
1 change: 1 addition & 0 deletions library.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"frameworks": "arduino",
"platforms": "*",
"dependencies": [],
"build": {
"includeDir": "src"
}
Expand Down
1 change: 1 addition & 0 deletions library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ paragraph=
category=Data Processing
url=https://github.com/sitronlabs/SitronLabs_Enedis_TIC_Arduino_Library
architectures=*
depends=
6 changes: 3 additions & 3 deletions src/tic.cpp → src/tic_reader.cpp
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions src/tic.h → src/tic_reader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef TIC_H
#define TIC_H
#ifndef TIC_READER_H
#define TIC_READER_H

/* Arduino libraries */
#include <Arduino.h>
Expand All @@ -19,7 +19,7 @@ struct tic_message {
/**
*
*/
class tic {
class tic_reader {
public:
/* Setup */
int setup(Stream &uart);
Expand Down

0 comments on commit 1eac56b

Please sign in to comment.