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

Investigate storing of strings to "virtual EEPROM" #11

Open
KDMcMullan opened this issue Jul 8, 2024 · 0 comments
Open

Investigate storing of strings to "virtual EEPROM" #11

KDMcMullan opened this issue Jul 8, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@KDMcMullan
Copy link
Owner

KDMcMullan commented Jul 8, 2024

I'm not completely convinced the way I've implemented prefs.putString is correct. For example, where I have:
const char* MsgCallsign = "mike 7 keelo charlee mike"; // M7KCM
then later:
prefs.putString("CS",MsgCallsign);
which works fine, HOWEVER:
MsgCallsign = prefs.getString("CS",MsgCallsign).c_str();
shouldn't work (I think), as MsgCallsign is a const. Maybe I'm confused and it's the pointer to the start of the string which is const?

UPDATE it turns out the stings component wasn't working at all: the logic calling it was flawed. The strings are now commented out until I get a chance to investigate.

@KDMcMullan KDMcMullan added bug Something isn't working help wanted Extra attention is needed labels Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant