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

Mi Band 8: Improve stress charts

This commit is contained in:
José Rebelo 2023-11-26 21:01:13 +00:00
parent 50cdcec846
commit c5757ea478

View File

@ -29,6 +29,10 @@ public class XiaomiStressSampleProvider extends AbstractSampleToTimeSampleProvid
@Override
protected StressSample convertSample(final XiaomiActivitySample sample) {
if (sample.getStress() == 0) {
return null;
}
return new XiaomiStressSample(
sample.getTimestamp() * 1000L,
sample.getStress()