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

fix: cleaning out role.connected #195

Merged
merged 2 commits into from Mar 10, 2023
Merged

fix: cleaning out role.connected #195

merged 2 commits into from Mar 10, 2023

Conversation

pelikhan
Copy link
Member

Cleaning out the role.connected code. The only thing left is "isConnected" which will need to be patched on the c++.

@pelikhan pelikhan requested a review from mmoskal March 10, 2023 13:48
@pelikhan pelikhan changed the title cleaning out role.connected fix: cleaning out role.connected Mar 10, 2023
@pelikhan pelikhan merged commit 11def14 into main Mar 10, 2023
3 checks passed
@pelikhan pelikhan deleted the connectedcleanup branch March 10, 2023 16:10
/**
* @internal
* @deprecated internal field for runtime support
*/
Copy link
Member

Choose a reason for hiding this comment

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

would you just like this renamed isBound or something?

@@ -20,7 +20,7 @@ ds.Led.prototype.setAllColors = async function (r, g, b) {
await this.setAll(r, g, b)
}

ledD.onConnected(async () => {
ledD.binding().subscribe(async () => {
await ledD.setAllColors(0.9, 1, 0)
Copy link
Member

Choose a reason for hiding this comment

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

should this check be async (bound) => { if (bound) await ledD... } ? as it stands this will also run on disconnect

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.

None yet

2 participants