diff --git a/config.ini b/config.ini index dff2d75..dc000d2 100644 --- a/config.ini +++ b/config.ini @@ -4,6 +4,7 @@ ; Hardware Serial baud rate ; Also available in the code as `MONITOR_SPEED` monitor_speed = 115200 +NFC_ADDR = 0x28 ; Software Config ; note: additionnal flags are added by Platform.io (see total amount in `.vscode/c_cpp_properties.json` in the `defines` section) diff --git a/lib/NFC/src/NfcReader.cpp b/lib/NFC/src/NfcReader.cpp index 23ea403..049f35a 100644 --- a/lib/NFC/src/NfcReader.cpp +++ b/lib/NFC/src/NfcReader.cpp @@ -1,11 +1,4 @@ -/* -** EPITECH PROJECT, 2024 -** T-IOT-901_convoyor -** File description: -** NfcReader -*/ - -#include "NfcReader.hpp" +#include "NfcReader.h" NfcReader::NfcReader(int i2c_adress) { @@ -13,8 +6,6 @@ NfcReader::NfcReader(int i2c_adress) this->mfrc522->PCD_Init(); } -NfcReader::~NfcReader() {} - String NfcReader::ReadNfc() { this->uid.clear(); diff --git a/lib/NFC/src/NfcReader.hpp b/lib/NFC/src/NfcReader.h similarity index 73% rename from lib/NFC/src/NfcReader.hpp rename to lib/NFC/src/NfcReader.h index aab376f..eeb976a 100644 --- a/lib/NFC/src/NfcReader.hpp +++ b/lib/NFC/src/NfcReader.h @@ -1,10 +1,3 @@ -/* -** EPITECH PROJECT, 2024 -** T-IOT-901_convoyor -** File description: -** NfcReader -*/ - #ifndef NFCREADER_HPP_ #define NFCREADER_HPP_ @@ -15,7 +8,7 @@ class NfcReader { public: NfcReader(int i2c_adress); - ~NfcReader(); + ~NfcReader() = default; String ReadNfc();