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

Ignition: Make (reset) button acts as power button when system power off #101

Merged
merged 1 commit into from
May 25, 2023

Conversation

arjenroodselaar
Copy link
Contributor

While testing rev C and stumbling over #94 I realized that when the button is configured as reset button, unless a power abort occurred, its events are ignored if the system is powered off. This diff changes this behavior, allowing the button to always power on a system in off state when pressed.

This is not super relevant for the rack because the button is not accessible when systems are installed in cubbies, but it may cause confusion when using systems on a bench an using both the LVDS and button interfaces.

// than a reset button. The system power transition logic will
// clear the abort flag is this power off was in response to a
// system power fault/abort.
let request_ = system_power_off ?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The actual change is here. The remaining fluff is to make the tests work.

Copy link
Collaborator

@nathanaelhuffman nathanaelhuffman left a comment

Choose a reason for hiding this comment

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

lgtm, D+ gimlets don't have a button installed but I don't see this as a stopper regardless.

@arjenroodselaar arjenroodselaar merged commit d2ecbde into main May 25, 2023
@arjenroodselaar arjenroodselaar deleted the ignition_reset_button_power_on_fix branch May 25, 2023 19:55
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