Skip to content

Commit

Permalink
Merge pull request #245 from rennancockles/dev
Browse files Browse the repository at this point in the history
fix setRFIDModuleMenu EEPROM address
  • Loading branch information
pr3y authored Sep 4, 2024
2 parents c487c76 + f62e800 commit 0fb4ba5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/rfid/RFIDInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/


#ifndef __RFID2INTERFACE_H__
#define __RFID2INTERFACE_H__
#ifndef __RFID_INTERFACE_H__
#define __RFID_INTERFACE_H__

#include "core/globals.h"

Expand Down
6 changes: 6 additions & 0 deletions src/modules/rfid/tag_o_matic.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* @date 2024-08-19
*/


#ifndef __TAG_O_MATIC_H__
#define __TAG_O_MATIC_H__

#include "RFIDInterface.h"


Expand Down Expand Up @@ -73,3 +77,5 @@ class TagOMatic {
void create_ndef_url();
void create_ndef_text();
};

#endif

0 comments on commit 0fb4ba5

Please sign in to comment.