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

rtc.readnvram(0) hangs on IDE version 2.3.2 but not on 1.8.7 #306

Open
FlFlyer2024 opened this issue Sep 23, 2024 · 0 comments
Open

rtc.readnvram(0) hangs on IDE version 2.3.2 but not on 1.8.7 #306

FlFlyer2024 opened this issue Sep 23, 2024 · 0 comments

Comments

@FlFlyer2024
Copy link

FlFlyer2024 commented Sep 23, 2024

Using a DS1307 chip.
Compiling RTCLib version 1.10.0 under Arduino 1.8.7 works.
Compiling RTCLib version 2.1.4 under Arduino 2.3.2 the program hangs on rtc.readnvram(0); after re-power up:

RTC_DS1307 rtc;
int SpotlightLRpos;

setup()
...
SpotlightUDpos = rtc.readnvram(0);
...

I've tried changing the definition to
uint8_t SpotlightLRpos;
but still hangs, sometimes immediately after upload, sometimes after power off-on.

I should mention that use of the clock functions work just fine, so it appears that the I2C communication is not the problem.
Example:
DateTime now = rtc.now();

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

1 participant