Skip to content

Fix rockwheel detection#9

Merged
palachzzz merged 1 commit intopalachzzz:masterfrom
hyperair:rockwheel-battery-estimation
May 22, 2019
Merged

Fix rockwheel detection#9
palachzzz merged 1 commit intopalachzzz:masterfrom
hyperair:rockwheel-battery-estimation

Conversation

@hyperair
Copy link

mBtName isn't populated (is an empty string) if we don't start from a fresh
bluetooth pairing with the GT16, so the battery gauge is wrongly calculated
based on a 67.2V battery instead.

Instead, check mName for a "ROCKW" prefix, as this is available even on
subsequent sessions.

mBtName isn't populated (is an empty string) if we don't start from a fresh
bluetooth pairing with the GT16, so the battery gauge is wrongly calculated
based on a 67.2V battery instead.

Instead, check mName for a "ROCKW" prefix, as this is available even on
subsequent sessions.
@palachzzz palachzzz merged commit e76de50 into palachzzz:master May 22, 2019
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