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

Add ability to adjust RTC #106

Open
networkfusion opened this issue May 21, 2024 · 0 comments
Open

Add ability to adjust RTC #106

networkfusion opened this issue May 21, 2024 · 0 comments
Labels
enhancement New feature or request merged to develop branch Fixed in the development branch

Comments

@networkfusion
Copy link
Collaborator

networkfusion commented May 21, 2024

Description

The Real time clock can become out of sync. Although (at least on the SC64) it is possible to adjust it, and also in some DD games, it should be possible to set it through the menu.

How to solve the problem

See: https://github.com/DragonMinded/libdragon/blob/af650428e9615f4e08d8e7eae187929a90c15ccc/examples/rtctest/rtctest.c

Describe alternatives you've considered

No response

Additional context

See menu/views/rtc.c

networkfusion added a commit that referenced this issue Nov 7, 2024
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->
This PR adds the ability to set the time from the menu.
The underlying logic is sound given what is currently available within
libdragon, but expected changes are noted (like `settimeofday`) for
future improvement and will need to be revisited once available.
A future PR will need to add better GUI components for numeric control.

## Motivation and Context
<!--- What does this sample do? What problem does it solve? -->
<!--- If it fixes/closes/resolves an open issue, please link to the
issue here -->
#106

## How Has This Been Tested?
<!-- (if applicable) -->
<!--- Please describe in detail how you tested your sample/changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->
locally on a SC64

## Screenshots
<!-- (if appropriate): -->

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Improvement (non-breaking change that adds a new feature)
- [ ] Bug fix (fixes an issue)
- [ ] Breaking change (breaking change)
- [ ] Config and build (change in the configuration and build system,
has no impact on code or features)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.

<!--- It would be nice if you could sign off your contribution by
replacing the name with your GitHub user name and GitHub email contact.
-->
Signed-off-by: GITHUB_USER <GITHUB_USER_EMAIL>
@networkfusion networkfusion added enhancement New feature or request merged to develop branch Fixed in the development branch labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request merged to develop branch Fixed in the development branch
Projects
None yet
Development

No branches or pull requests

1 participant