Skip to content

Commit 0289377

Browse files
author
Dairon Medina
committed
Fixing Weight
1 parent 653794f commit 0289377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/weighin/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def port_list():
3636
i = 0
3737
ports = glob.glob('/dev/ttyS*') + glob.glob('/dev/ttyUSB*')
3838

39-
choices = tuple((str(i),ports[i]) for i in range(len(ports)))
39+
choices = tuple((ports[i],ports[i]) for i in range(len(ports)))
4040
return choices
4141

4242
def drivers_list():

0 commit comments

Comments
 (0)