Skip to content

Commit

Permalink
use raw_input - safer
Browse files Browse the repository at this point in the history
  • Loading branch information
electronut committed Nov 26, 2014
1 parent 0c99009 commit 8f2f2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arduino-laser/laser.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def manualTest(ser):
try:
while True:
print('enter motor control info: eg. < 100 1 120 0 >')
strIn = input()
strIn = raw_input()
vals = [int(val) for val in strIn.split()[:4]]
vals.insert(0, ord('H'))
data = struct.pack('BBBBB', *vals)
Expand Down

0 comments on commit 8f2f2bc

Please sign in to comment.