Skip to content

Commit

Permalink
Give voltage value to the battery icon (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
loucass003 authored Jan 31, 2025
1 parent 92eb829 commit b19d38a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/src/components/tracker/TrackerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function TrackerBig({
<>
{device.hardwareStatus.batteryPctEstimate && (
<TrackerBattery
voltage={device.hardwareStatus.batteryVoltage}
value={device.hardwareStatus.batteryPctEstimate / 100}
disabled={tracker.status === TrackerStatusEnum.DISCONNECTED}
/>
Expand Down Expand Up @@ -93,6 +94,7 @@ function TrackerSmol({
<div className="flex flex-col justify-center items-center">
{device.hardwareStatus.batteryPctEstimate && (
<TrackerBattery
voltage={device.hardwareStatus.batteryVoltage}
value={device.hardwareStatus.batteryPctEstimate / 100}
disabled={tracker.status === TrackerStatusEnum.DISCONNECTED}
/>
Expand Down

0 comments on commit b19d38a

Please sign in to comment.