mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 11:35:48 +01:00
LeFun: Broadcast when HR samples are received
This commit is contained in:
parent
da5f91f05b
commit
298dbbe777
@ -915,6 +915,10 @@ public class LefunDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
sample.setHeartRate(ppgData0);
|
sample.setHeartRate(ppgData0);
|
||||||
|
|
||||||
session.getLefunActivitySampleDao().insertOrReplace(sample);
|
session.getLefunActivitySampleDao().insertOrReplace(sample);
|
||||||
|
|
||||||
|
final Intent intent = new Intent(DeviceService.ACTION_REALTIME_SAMPLES)
|
||||||
|
.putExtra(DeviceService.EXTRA_REALTIME_SAMPLE, sample);
|
||||||
|
LocalBroadcastManager.getInstance(getContext()).sendBroadcast(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
LefunBiometricSample bioSample = new LefunBiometricSample(timestamp,
|
LefunBiometricSample bioSample = new LefunBiometricSample(timestamp,
|
||||||
|
Loading…
Reference in New Issue
Block a user