-
Notifications
You must be signed in to change notification settings - Fork 594
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
Refact: Separate LED selection and state control #957
Conversation
|
Looks good to me on first sight but can you be more precise in the description, namely:
|
Oh, there might be the desire of reviewers who lack context to have a subject line that sets its to hardware/intel and the IOT2050 device. |
11d119f
to
fd732ad
Compare
Has already polished the commit message. |
fd732ad
to
fc1f402
Compare
Separation of class LED selection and state control. The label of the LED corresponds to the silk screen of the iot2050. Before we use one list to enumerate all the led and its state. like: User1 Led Red User1 Led Green User1 Led Orange User2 Led Red User2 Led Green User2 Led Orange if we need to add or delete the LED, we should change this list After Separation of class LED selection and state control one is Led selection: USER1 USER2 the other is status selection: Green Red Orange For this structure, if the led or status changes, We don't need to enumerate all the states. Also there is a problem with the old version: When we use one node to control led show green, then we use another node to control led show red. The result we expect is led red, but the actually result is led orange. This is caused the previous green do not turn off. State change is wrong. This refact would also fix it. Signed-off-by: chao zeng <chao.zeng@siemens.com>
fc1f402
to
4812ad4
Compare
please comment when this has been tested and is ready to merge. |
hi |
Looks good to me. |
Thanks - published as v0.3.0 |
Separation of class LED selection and state control. The label of the LED corresponds to the silk screen of the iot2050.
There is a problem with the state switching of the old version, This refact would also fix it.
Signed-off-by: chao zeng chao.zeng@siemens.com
Proposed changes
Checklist
grunt
to verify the unit tests pass