Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix setRFIDModuleMenu EEPROM address #245

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading