1
0
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:
José Rebelo 2023-07-04 20:23:23 +01:00 committed by José Rebelo
parent da5f91f05b
commit 298dbbe777

View File

@ -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,