Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
energy
bmon
Commits
1b9b992e
Commit
1b9b992e
authored
Feb 19, 2021
by
Alan Mitchell
Browse files
Converted from mm to inches for Dragino distance sensors.
parent
61588537
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bmsapp/lora/decode_dragino.py
bmsapp/lora/decode_dragino.py
+2
-2
No files found.
bmsapp/lora/decode_dragino.py
View file @
1b9b992e
...
...
@@ -185,8 +185,8 @@ def decode_ldds(data: bytes) -> Dict[str, Any]:
# Battery voltage
res
[
'vdd'
]
=
(
int16
(
0
)
&
0x3FFF
)
/
1000
# Distance in
millimeter
s
res
[
'distance'
]
=
int16
(
2
)
# Distance in
inche
s
res
[
'distance'
]
=
int16
(
2
)
/
25.4
return
res
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment