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

Allow the user to insert USB with config file after bootup #299

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

ted-miller
Copy link
Collaborator

While testing #277, I inserted the USB after bootup. It didn't recognize my config file until I rebooted.

Copy link
Collaborator

@gavanderhoorn gavanderhoorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also a bit of a behaviour change. Don't we state in the documentation that config changes need a controller restart?

src/ConfigFile.c Outdated Show resolved Hide resolved
@ted-miller
Copy link
Collaborator Author

This is also a bit of a behaviour change. Don't we state in the documentation that config changes need a controller restart

Not really. We just tell people to insert the USB while the controller is powered down. That's primarily for safety reasons of opening the cabinet while powered up.

We already continuously poll the SRAM for a file. I don't see any reason why we shouldn't poll USB too.

@gavanderhoorn
Copy link
Collaborator

Note: I haven't tested this.

src/ConfigFile.c Outdated Show resolved Hide resolved
Copy link
Collaborator

@gavanderhoorn gavanderhoorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed it just now.

Co-authored-by: G.A. vd. Hoorn <[email protected]>
@ted-miller ted-miller merged commit 5820d8d into main Sep 6, 2024
14 checks passed
@ted-miller ted-miller deleted the repeatedly_check_usb_for_config branch September 6, 2024 17:09
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