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
07b008b6
Commit
07b008b6
authored
3 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
ecg: Stop streaming when connection closes
parent
a7a2174f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!493
feat(ecg): Experimental streaming of ECG samples via BLE
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
preload/apps/ecg/__init__.py
+3
-0
3 additions, 0 deletions
preload/apps/ecg/__init__.py
with
3 additions
and
0 deletions
preload/apps/ecg/__init__.py
+
3
−
0
View file @
07b008b6
...
...
@@ -73,6 +73,9 @@ class ECG:
print
(
"
BLE Connected
"
)
elif
event
==
_IRQ_CENTRAL_DISCONNECT
:
print
(
"
BLE Disconnected
"
)
self
.
ble_streaming
=
False
if
not
config
.
get_option
(
"
BLE Disp
"
):
self
.
disp
.
backlight
(
20
)
elif
event
==
_IRQ_GATTS_WRITE
:
conn_handle
,
value_handle
=
data
if
value_handle
==
self
.
ecg_cccd_handle
:
...
...
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