Fixed add endpoint
This commit is contained in:
parent
eac465e1a8
commit
5bc507f38a
1 changed files with 3 additions and 3 deletions
|
@ -63,9 +63,9 @@ async def add_weight(tl: int, tr: int, bl: int, br: int):
|
|||
latest_values = [tl, tr, bl, br]
|
||||
|
||||
tl = convert_to_weight(tl, zero_values[0], scale_values[0])
|
||||
tr = convert_to_weight(tl, zero_values[1], scale_values[1])
|
||||
bl = convert_to_weight(tl, zero_values[2], scale_values[2])
|
||||
br = convert_to_weight(tl, zero_values[3], scale_values[3])
|
||||
tr = convert_to_weight(tr, zero_values[1], scale_values[1])
|
||||
bl = convert_to_weight(bl, zero_values[2], scale_values[2])
|
||||
br = convert_to_weight(br, zero_values[3], scale_values[3])
|
||||
|
||||
sum = tl + tr + bl + br
|
||||
add_line_to_history(f"{str(datetime.now())};{tl};{tr};{bl};{br};{sum};")
|
||||
|
|
Loading…
Reference in a new issue