From f62e80043fada1623a932fafdf725e4450c4a1ae Mon Sep 17 00:00:00 2001 From: Rennan Cockles Date: Wed, 4 Sep 2024 10:34:55 -0300 Subject: [PATCH] fix setRFIDModuleMenu EEPROM address --- src/core/settings.cpp | 2 +- src/modules/rfid/RFIDInterface.h | 4 ++-- src/modules/rfid/tag_o_matic.h | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 2e9c13c..83802b4 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -363,7 +363,7 @@ void setRFIDModuleMenu() { RfidModule=result; EEPROM.begin(EEPROMSIZE); // open eeprom - EEPROM.write(13, RfidModule); //set the byte + EEPROM.write(14, RfidModule); //set the byte EEPROM.commit(); // Store data to EEPROM EEPROM.end(); // Free EEPROM memory } diff --git a/src/modules/rfid/RFIDInterface.h b/src/modules/rfid/RFIDInterface.h index af4f6ca..47531e1 100644 --- a/src/modules/rfid/RFIDInterface.h +++ b/src/modules/rfid/RFIDInterface.h @@ -7,8 +7,8 @@ */ -#ifndef __RFID2INTERFACE_H__ -#define __RFID2INTERFACE_H__ +#ifndef __RFID_INTERFACE_H__ +#define __RFID_INTERFACE_H__ #include "core/globals.h" diff --git a/src/modules/rfid/tag_o_matic.h b/src/modules/rfid/tag_o_matic.h index 6c4f9bb..d7e2803 100644 --- a/src/modules/rfid/tag_o_matic.h +++ b/src/modules/rfid/tag_o_matic.h @@ -6,6 +6,10 @@ * @date 2024-08-19 */ + +#ifndef __TAG_O_MATIC_H__ +#define __TAG_O_MATIC_H__ + #include "RFIDInterface.h" @@ -73,3 +77,5 @@ class TagOMatic { void create_ndef_url(); void create_ndef_text(); }; + +#endif