Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
bcb6ccc1
Commit
bcb6ccc1
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(exnostat): Consume all BLE events
parent
03b8486c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!446
Initial MicroPython BLE support (GATTS)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
preload/apps/exnostat/__init__.py
+11
-8
11 additions, 8 deletions
preload/apps/exnostat/__init__.py
with
11 additions
and
8 deletions
preload/apps/exnostat/__init__.py
+
11
−
8
View file @
bcb6ccc1
...
...
@@ -100,14 +100,17 @@ def process_scan_report(scan_report):
def
ble_callback
(
_
):
event
=
sys_ble
.
get_event
()
if
event
==
sys_ble
.
EVENT_SCAN_REPORT
:
while
True
:
scan_report
=
sys_ble
.
get_scan_report
()
if
scan_report
==
None
:
break
process_scan_report
(
scan_report
)
prune
()
while
True
:
event
=
sys_ble
.
get_event
()
if
event
==
sys_ble
.
EVENT_NONE
:
break
if
event
==
sys_ble
.
EVENT_SCAN_REPORT
:
while
True
:
scan_report
=
sys_ble
.
get_scan_report
()
if
scan_report
==
None
:
break
process_scan_report
(
scan_report
)
prune
()
def
show_stats
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment