Skip to content

Commit 0104184

Browse files
committed
add screen and capture for statistics
1 parent 4253930 commit 0104184

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎app/src/main/java/com/mg4/control/stats/StatsStore.kt‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ class StatsStore(private val context: Context) {
135135
fun addTrip(trip: Trip) = synchronized(LOCK) {
136136
val h = read()
137137
write(h.copy(trips = h.trips + trip))
138-
AppLogger.i(TAG, "trajet enregistré : ${trip.distance} km · ${trip.netEnergyKwh} kWh")
138+
// Les deux distances sont journalisées séparément : sur un trajet dont l'odomètre tombe
139+
// rond, c'est le seul moyen de dire si l'intégration de la vitesse a bien travaillé.
140+
AppLogger.i(TAG, "trajet enregistré : ${trip.distance} km " +
141+
"(odomètre ${trip.distanceKm}, intégré ${trip.integratedKm ?: "aucun"}) · " +
142+
"${trip.netEnergyKwh} kWh · ${trip.outsideTempC ?: "?"} °C")
139143
}
140144

141145
fun addCharge(session: ChargeSession) = synchronized(LOCK) {

0 commit comments

Comments
 (0)