Skip to content

Commit

Permalink
Limit cellless voltage to one decimal place
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Dec 23, 2021
1 parent e763674 commit 245893e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WIDGETS/ELRST/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ local function drawVBatt(widget, tlm)
str = string.format("%dS %.2fV", cells, tlm.vbat / cells)
end
else
str = tostring(tlm.vbat) .. "V"
str = string.format("%.2fV", tlm.vbat)
end
else
str = " --"
Expand Down

0 comments on commit 245893e

Please sign in to comment.