sprhawk / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

Fix tools/ipm.py when arguments include -s and --baud #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
$ ./ipm.py -s /dev/tty.usbserial-000030FDB --baud=115200

What is the expected output? What do you see instead?
Expect to connect to device.  
Instead get: ValueError: invalid literal for int() with base 10: '--
baud=115200'

Original issue reported on code.google.com by dwhall...@gmail.com on 19 May 2010 at 11:42

GoogleCodeExporter commented 9 years ago

Original comment by dwhall...@gmail.com on 22 Oct 2010 at 3:30

GoogleCodeExporter commented 9 years ago
rdb2314cea6
- Made tools/ipm.py use optparse so args are handled properly.
- Removed unecessary usage string.
- Updated docstring to include pyserial requirement.

Tested with desktop ipm and with arduino_mega target

Original comment by dwhall...@gmail.com on 26 Oct 2010 at 3:20