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

ecg: don't run callback if there is no data to be processed

parent a0af9d4b
No related branches found
No related tags found
1 merge request!493feat(ecg): Experimental streaming of ECG samples via BLE
Pipeline #5334 passed
......@@ -176,6 +176,9 @@ class ECG:
self.pulse = -1
def callback_ecg(self, datasets):
if len(datasets) == 0:
return
if self.ble_streaming:
try:
self.b.gatts_notify(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment