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

Fix crash due to unnecessary settime on Android phone #16

Closed
wants to merge 1 commit into from

Conversation

eggonlea
Copy link

If Android phone is used, both of RC and DS might have already adjusted their time correctly from network. It's not necessary to change it. Furthermore, the latest version of Android doesn't allow this operation without system privileged.

@NoahAndrews
Copy link
Member

This bug is already fixed in the next version of the official FTC SDK, and therefore it will be fixed in the next version of OpenRC-Turbo as well. Thanks for the contribution though!

@eggonlea
Copy link
Author

Cool. Thx! Looking forward to the new SDK release.

@eggonlea eggonlea closed this Aug 24, 2021
@NoahAndrews
Copy link
Member

Just for the sake of education, I believe this PR would still crash if the RC and DS phones had clocks more than a second off, so that's not a very sound fix. The way we fixed the crash in the official SDK is to only attempt to set the clock and timezone on a Control Hub, which is the only place it ever worked anyway.

@Windwoes
Copy link
Member

SDK issue of interest: FIRST-Tech-Challenge/FtcRobotController#119

@eggonlea
Copy link
Author

Yes, the RC app isn't a system one so it's not allowed to set it. Thx for providing more details!

This pull request was closed.
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.

3 participants