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

mdns discovery fix. adapter always zstack #763

Merged
merged 6 commits into from
Sep 17, 2023
Merged

Conversation

Tarik2142
Copy link
Contributor

Mdns discovery only worked with zstack adapters. This PR fixes this bug and the adapter will be taken from the mdns configuration

@Tarik2142
Copy link
Contributor Author

Tarik2142 commented Sep 14, 2023

checking for auto makes no sense because in this case the hasOwnProperty(serialPortOptions.adapter) check will still fail.
Had to change radio to auto just to pass jest

@Tarik2142
Copy link
Contributor Author

I apologize for the push spam, but only the test script works on Windows. All the others don't work, probably due to file path issues, in any case I couldn't get them to run even after trying to fix the paths
image

resolve(new adapter(networkOptions, serialPortOptions, backupPath, adapterOptions, logger));

if (adapterLookup.hasOwnProperty(serialPortOptions.adapter)
&& serialPortOptions.adapter !== 'auto') {
Copy link
Owner

Choose a reason for hiding this comment

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

adapterLookup doesn't contain auto so the serialPortOptions.adapter !== 'auto' statement is not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand that, but typescript doesn't
image
image

@Koenkk Koenkk merged commit 1a3edaf into Koenkk:master Sep 17, 2023
1 check passed
@Koenkk
Copy link
Owner

Koenkk commented Sep 17, 2023

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