WillemVH commited on
Commit
1a02733
·
verified ·
1 Parent(s): 8f0419d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -31,11 +31,12 @@ def apirequests():
31
  servolist = get_servo_list(id)
32
  one, two, three = servolist.split(',')
33
  #split it up ^
34
- if servo == 1
 
35
  return one
36
- if servo == 2
37
  return two
38
- if servo == 3
39
  return three
40
  # ^ identify the servo
41
  if __name__ == '__main__':
 
31
  servolist = get_servo_list(id)
32
  one, two, three = servolist.split(',')
33
  #split it up ^
34
+ servo = int(servo)
35
+ if servo == 1:
36
  return one
37
+ if servo == 2:
38
  return two
39
+ if servo == 3:
40
  return three
41
  # ^ identify the servo
42
  if __name__ == '__main__':