mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 19:15:50 +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);
|
||||
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user