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 MTU for peripheral #308

Merged
merged 2 commits into from
Jul 26, 2023
Merged

Fix MTU for peripheral #308

merged 2 commits into from
Jul 26, 2023

Conversation

Apollon77
Copy link

The current version has two issues regarding MTU:
1.) Mising in types
2.) It is never set because the code only updates mtu if the peripheral.mtu is not falsy (what the default value null always is) so it was never updated.
I decided to remove this check. This could lead to the fact that the MTU could get updated after initially set which could be strange ... but would be the reality. Alternatively the code was just missing a "!" and wanted to only update mtu if "not aloready a value is set" ... no idea.

@rzr
Copy link

rzr commented Jul 24, 2023

@codecov-commenter
Copy link

Codecov Report

Merging #308 (8c53570) into master (67dc6aa) will not change coverage.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##           master     #308   +/-   ##
=======================================
  Coverage   91.79%   91.79%           
=======================================
  Files          24       24           
  Lines        2902     2902           
=======================================
  Hits         2664     2664           
  Misses        238      238           
Files Changed Coverage Δ
lib/noble.js 98.40% <100.00%> (ø)

@Apollon77
Copy link
Author

@rzr tests adjusted

@rzr rzr merged commit dc13ae9 into abandonware:master Jul 26, 2023
21 checks passed
@Apollon77
Copy link
Author

Ok, PR for release comes soon

@Apollon77 Apollon77 deleted the mtu_fixes branch July 26, 2023 18:36
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.

3 participants