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

No more booting when battery dies or is removed #57

Open
NoFloXx opened this issue Aug 18, 2023 · 1 comment
Open

No more booting when battery dies or is removed #57

NoFloXx opened this issue Aug 18, 2023 · 1 comment

Comments

@NoFloXx
Copy link

NoFloXx commented Aug 18, 2023

As soon as you remove the battery and put it back in, the TBeam no longer boots. The same also happens if the battery is empty and you don't charge it during operation.
You then have to flash the entire TBeam again, since it no longer boots.
Then it runs perfectly again.

@Bobkatze
Copy link

Bobkatze commented Aug 29, 2023

I cant seem to make it run again no matter what I try.
I tried disconnecting the battery, reflashing, erasing the flash and reflashing, both with and without battery.
I still get this error: [ 5532][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND

I have managed to track it down to this function causing the error, But I dont know if its the actual cause for being stuck.
The code responsible is located in ttn.ino at line 228. (line might differ since I added a few debug messages to narrow down the error)
// If the value for LORA packet counts is unknown, restore from flash static void initCount() { if(count == 0) { Preferences p; if(p.begin("lora", true)) { count = p.getUInt("count", 0); p.end(); } } }

Help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants