mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-11 18:35:49 +01:00
Huawei: Display maximum oxygen uptake if available
This commit is contained in:
parent
7b8f02ec29
commit
5a025d8d99
@ -430,6 +430,12 @@ public class HuaweiWorkoutGbParser implements ActivitySummaryParser {
|
||||
summaryData.add(ActivitySummaryEntries.SWIM_STYLE, getSwimStyle(summary.getSwimType()));
|
||||
}
|
||||
|
||||
if(summary.getMaxMET() > 0) {
|
||||
int value = (int) (((float) summary.getMaxMET() * 3.5f)) / 65536;
|
||||
summaryData.add(ActivitySummaryEntries.MAXIMUM_OXYGEN_UPTAKE, value, ActivitySummaryEntries.UNIT_ML_KG_MIN);
|
||||
}
|
||||
|
||||
|
||||
Integer summaryMinAltitude = summary.getMinAltitude();
|
||||
Integer summaryMaxAltitude = summary.getMaxAltitude();
|
||||
Integer elevationGain = summary.getElevationGain();
|
||||
|
Loading…
Reference in New Issue
Block a user