mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
Mi Band 8: Improve stress charts
This commit is contained in:
parent
50cdcec846
commit
c5757ea478
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user