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

Huawei: Improve distanceCm

This commit is contained in:
Martin.JM 2024-10-28 11:44:17 +01:00 committed by Arjan Schrijver
parent 29189bac93
commit 20eabcd283

View File

@ -1333,7 +1333,7 @@ public class GBDaoGenerator {
activitySample.addIntProperty("distance").notNull().codeBeforeGetter(
"@Override\n" +
" public int getDistanceCm() {\n" +
" return getDistance() * 100;\n" +
" return getDistance() == HuaweiActivitySample.NOT_MEASURED ? HuaweiActivitySample.NOT_MEASURED : getDistance() * 100;\n" +
" }\n"
);
activitySample.addIntProperty("spo").notNull();