From c7030af398dac88cd2d202280ac1b4b0406086fc Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Tue, 24 Jan 2023 01:02:05 -0500 Subject: [PATCH] [F] Fix battery info --- app/src/main/java/org/hydev/wearsync/BatteryInfo.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/hydev/wearsync/BatteryInfo.kt b/app/src/main/java/org/hydev/wearsync/BatteryInfo.kt index d3f0987..8ba9183 100644 --- a/app/src/main/java/org/hydev/wearsync/BatteryInfo.kt +++ b/app/src/main/java/org/hydev/wearsync/BatteryInfo.kt @@ -7,9 +7,9 @@ import com.influxdb.annotations.Measurement @Measurement(name = "phone-battery") data class BatteryInfo( - @Column val percent: Double, - @Column val temp: Int, - @Column val voltage: Int, + @Column val percent: Double, // Percent + @Column val temperature: Double, // Celsius + @Column val voltage: Double, // Volts @Column val status: String?, @Column val health: String?, @Column val powerSource: String?, @@ -56,8 +56,8 @@ data class BatteryInfo( return BatteryInfo( percent = level.toDouble() / scale, - temp = temp, - voltage = voltage, + temperature = temp / 10.0, + voltage = voltage / 1000.0, status = statusStr, health = healthStr, powerSource = powerSource