kopia lustrzana https://github.com/evil-mad/EggBot
Use new device location routines; getSerialPort() is now platform independent with platform specific code buried in eggbot_scan.py, eggbot_scanwin32.py, eggbot_scanosx.py, eggbot_scanposix.py
git-svn-id: https://eggbotcode.googlecode.com/svn/trunk@101 72233254-1b6c-9e9c-5072-401df62706fbpull/47/head
rodzic
a23c596ae2
commit
c0bcd3af8c
|
|
@ -104,7 +104,7 @@ selected number, which can be up to 100.
|
|||
<_param name="instructions_general" type="description" xml:space="preserve">
|
||||
EggBot Control Inkscape extension
|
||||
http://www.egg-bot.com/
|
||||
(Preview version 9/9/2010-D)
|
||||
(Preview version 9/12/2010-A)
|
||||
|
||||
*Motor wiring should be (L-R):
|
||||
Grey-Green-Yellow-Pink, for both motors
|
||||
|
|
|
|||
|
|
@ -1048,12 +1048,14 @@ class EggBot( inkex.Effect ):
|
|||
for strComPort in eggbot_scan.findEiBotBoards():
|
||||
serialPort = self.testSerialPort( strComPort )
|
||||
if serialPort != None:
|
||||
self.svgSerialPort = strComPort
|
||||
return serialPort
|
||||
|
||||
# Try any likely ports
|
||||
for strComPort in eggbot_scan.findPorts():
|
||||
serialPort = self.testSerialPort( strComPort )
|
||||
if serialPort != None:
|
||||
self.svgSerialPort = strComPort
|
||||
return serialPort
|
||||
|
||||
return None
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue