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

RP2040 fix RTC get/set time methods #2609

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Jan 30, 2023

Return 0 for current time if not initialised
Month is off by one, time setting fails

Return 0 for current time if not initialised
Month is off by one, time setting fails
@what-the-diff
Copy link

what-the-diff bot commented Jan 30, 2023

  • The month is now 0-based instead of 1-based.
  • If rtc_get_datetime fails, it will return a zero timestamp (instead of the current time).

@slaff slaff added this to the 4.8.0 milestone Jan 30, 2023
@slaff slaff merged commit 61ee671 into SmingHub:develop Jan 30, 2023
@mikee47 mikee47 deleted the fix/rp2040-rtcgetset branch February 1, 2023 10:34
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

Successfully merging this pull request may close these issues.

2 participants