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-401df62706fb
pull/47/head
newman.daniel1 2010-09-13 02:03:17 +00:00
rodzic a23c596ae2
commit c0bcd3af8c
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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