Skip to content

Commit

Permalink
Fix current/voltage mixup for merged Chargepoints (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
robho authored Nov 12, 2024
1 parent 1e7bcd7 commit 5f2bf26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/net/vonforst/evmap/model/ChargersModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ data class ChargeLocation(
.filter { it.type == variant.type && it.power == variant.power }
val count = filtered.sumOf { it.count }
Chargepoint(variant.type, variant.power, count,
filtered.map { it.voltage }.distinct().singleOrNull(),
filtered.map { it.current }.distinct().singleOrNull()
filtered.map { it.current }.distinct().singleOrNull(),
filtered.map { it.voltage }.distinct().singleOrNull()
)
}
}
Expand Down

0 comments on commit 5f2bf26

Please sign in to comment.