Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
07aec468
Commit
07aec468
authored
Jun 17, 2020
by
Jim Mussared
Committed by
Damien George
Jul 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/bluetooth: In ble_advertising.py, skip appearance if not set.
parent
5d0be97b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/bluetooth/ble_advertising.py
examples/bluetooth/ble_advertising.py
+2
-1
No files found.
examples/bluetooth/ble_advertising.py
View file @
07aec468
...
...
@@ -47,7 +47,8 @@ def advertising_payload(limited_disc=False, br_edr=False, name=None, services=No
_append
(
_ADV_TYPE_UUID128_COMPLETE
,
b
)
# See org.bluetooth.characteristic.gap.appearance.xml
_append
(
_ADV_TYPE_APPEARANCE
,
struct
.
pack
(
"<h"
,
appearance
))
if
appearance
:
_append
(
_ADV_TYPE_APPEARANCE
,
struct
.
pack
(
"<h"
,
appearance
))
return
payload
...
...
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