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

changed the operation method of autod #5

Merged
merged 2 commits into from
May 2, 2023
Merged

Conversation

jinwon0325kim
Copy link
Collaborator

autod was moved from each device to main
so made it work with on thread

if comport in self.parent.dialog:
if not self.parent.dialog[comport].get_window().pushButtonDevicePower.isChecked():
self.parent.dialog[comport].get_window(
).pushButtonDevicePower.toggle()
else:
Copy link
Collaborator

Choose a reason for hiding this comment

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

if comport in self.parent.dialog:
                if not self.parent.dialog[comport].get_window().pushButtonDevicePower.isChecked():
                    self.parent.dialog[comport].get_window(
                    ).pushButtonDevicePower.toggle()

I think this routine is duplicate at many places. Can we make this routine as function ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's a good idea
I will apply.

self.step = 2
continue
self.step = 0
elif self.step == 2:
Copy link
Collaborator

Choose a reason for hiding this comment

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

"2" means ONBOARDING_MANUAL_PAIRING_CODE_BOTTON ?
If yes, how about using constants to determine step, instead of number ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's a different value.
I will define and use the value

Copy link
Collaborator

@sangsoolee sangsoolee left a comment

Choose a reason for hiding this comment

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

thanks for updating

@@ -121,7 +130,7 @@ def power_onoff(self, state):
self.ioter.launch_chip_all_clusters(self.device_info)
self.textBrowserLog.append("=== Matter Commissioning ===")

# self는 WindowClass의 인스턴스, Thread 클래스에서 parent로 전달
# self??WindowClass???�스?�스, Thread ?�래?�에??parent�??�달
Copy link
Collaborator

Choose a reason for hiding this comment

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

pls check the comment and if possible, pls write not Kor but Eng

@jinwon0325kim jinwon0325kim merged commit ebe126e into main May 2, 2023
@jinwon0325kim jinwon0325kim deleted the feature/change_autod branch May 2, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants