Switch from kcal to cal in samples

This allows for higher precision in devices that support it.
This commit is contained in:
Martin.JM
2024-12-15 21:10:05 +01:00
parent d807909b25
commit 600629e7ed
5 changed files with 16 additions and 3 deletions
@@ -1363,7 +1363,7 @@ public class GBDaoGenerator {
activitySample.addIntProperty("calories").notNull().codeBeforeGetter(
"@Override\n" +
" public int getActiveCalories() {\n" +
" return getCalories() == HuaweiActivitySample.NOT_MEASURED ? HuaweiActivitySample.NOT_MEASURED : Math.round(getCalories() / 1000f);\n" +
" return getCalories();\n" +
" }\n"
);
activitySample.addIntProperty("distance").notNull().codeBeforeGetter(