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

feature: added the possibility of power on/off individual nodes to tpi #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpnadas
Copy link

@jpnadas jpnadas commented Apr 19, 2023

Context

The api and the GUI already have the capability of powering on/off individual nodes, but this was not implemented by the CLI.

This PR introduces this capability, with a small amount of refactoring.

Notably, I added a few macros to define constant values for POWER_(ON|OFF|STATUS) and split the power function in two, set_power and get_power, to keep the logic more decoupled between them.

@j0ju
Copy link

j0ju commented Apr 29, 2023

I can confirm that this works. I cherry-picked it into my fork, thanks.

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