mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 23:19:33 +00:00
Delete dot after V
This commit is contained in:
@@ -63,7 +63,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
if col == 1:
|
||||
model.setData(model.index(row, col), value)
|
||||
elif col == 2:
|
||||
model.setData(model.index(row, col), "{} V.".format(round(float(value), 3)))
|
||||
model.setData(model.index(row, col), "{} V".format(round(float(value), 3)))
|
||||
elif col == 3:
|
||||
batt_percent = ((float(value) - 3.2) / (4.2 - 3.2)) * 100
|
||||
model.setData(model.index(row, col), "{} %".format(round(batt_percent, 3)))
|
||||
|
||||
Reference in New Issue
Block a user