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

[S.PORT] Powerbox fields added #2970

Merged
merged 3 commits into from
Dec 13, 2015
Merged

[S.PORT] Powerbox fields added #2970

merged 3 commits into from
Dec 13, 2015

Conversation

bsongis
Copy link
Member

@bsongis bsongis commented Oct 14, 2015

Not for merge now, just for review.
And tests if anybody has the hardware, which I don't. Please report!

unit = sensor->unit;
precision = sensor->prec;
if (id >= POWERBOX_BATT1_FIRST_ID && id <= POWERBOX_BATT2_LAST_ID) {
processSportPacket(id, 0, instance, data & 0xffff);
Copy link
Member

Choose a reason for hiding this comment

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

According to specs the voltage is in 0.001V. Divide the value here by 10.

bsongis added a commit that referenced this pull request Dec 13, 2015
@bsongis bsongis merged commit 4c6063a into master Dec 13, 2015
@bsongis bsongis deleted the bsongis/sport_powerbox branch December 13, 2015 20:10
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