1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-27 02:55:50 +01:00

Mi Band 8: Fix heart rate one-shot measurements

This commit is contained in:
José Rebelo 2023-10-05 22:50:07 +01:00
parent 241486f7c3
commit 28bd9eeed6

View File

@ -159,6 +159,9 @@ public class XiaomiHealthService extends AbstractXiaomiService {
private void handleRealtimeStats(final XiaomiProto.RealTimeStats realTimeStats) { private void handleRealtimeStats(final XiaomiProto.RealTimeStats realTimeStats) {
if (realtimeOneShot) { if (realtimeOneShot) {
if (realTimeStats.getHeartRate() <= 10) {
return;
}
enableRealtimeStats(false); enableRealtimeStats(false);
} }