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

Support for additional scale and fixes according to the docs. #11

Merged
merged 3 commits into from
Oct 26, 2015
Merged

Support for additional scale and fixes according to the docs. #11

merged 3 commits into from
Oct 26, 2015

Conversation

sanmai
Copy link
Contributor

@sanmai sanmai commented Oct 23, 2015

In the docs we read that a numeric value representing the scaling applied to the data as ten exponent base. In other words exponent value shall be signed.

Dividing by 10 as it was on line 280 would only work for ounces. For example, DYMO M25 when set to work in grams would return them as they are, and dividing by ten would give us invalid value.

I believe this should bring #8 to closing.

Dymo M25 Scale uses different endpoint from the default (LIBUSB_RECIPIENT_ENDPOINT instead of LIBUSB_RECIPIENT_INTERFACE), hence we need to find it in the device's configuration.
erjiang added a commit that referenced this pull request Oct 26, 2015
Support for additional scale, fix weight calculation
@erjiang erjiang merged commit 60b6f39 into erjiang:master Oct 26, 2015
@erjiang
Copy link
Owner

erjiang commented Oct 26, 2015

Hi @sanmai, I tested your changes and you are right about the weight calculation. Thanks for fixing this issue! I unfortunately do not have many scales to test with so I didn't notice this error.

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