Skip to content
Snippets Groups Projects
Commit 07b008b6 authored by schneider's avatar schneider
Browse files

ecg: Stop streaming when connection closes

parent a7a2174f
No related branches found
No related tags found
1 merge request!493feat(ecg): Experimental streaming of ECG samples via BLE
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment