diff service/frontDoorArduino/frontDoorArduino.py @ 823:0aafd40e4afc

move more ports to use /dev/serial/by-id/ Ignore-this: 4d9bc18902dfe08897c3e03579c87b23 darcs-hash:20111204030320-312f9-da93888bb0e3b2bc898eb34f3126706d0ac3aefa.gz
author drewp <drewp@bigasterisk.com>
date Sat, 03 Dec 2011 19:03:20 -0800
parents b1c92ee20ff4
children 0cffbf171a97
line wrap: on
line diff
--- a/service/frontDoorArduino/frontDoorArduino.py	Sat Dec 03 19:03:07 2011 -0800
+++ b/service/frontDoorArduino/frontDoorArduino.py	Sat Dec 03 19:03:20 2011 -0800
@@ -181,12 +181,8 @@
 
 if __name__ == '__main__':
 
-    port = '/dev/ttyUSB0'
-    if not os.path.exists(port):
-        port = '/dev/ttyUSB1'
-
     config = { # to be read from a file
-        'arduinoPort': port,
+        'arduinoPort': '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A6004bUG-if00-port0',
         'servePort' : 9080,
         'pollFrequency' : 1,
         'boardName' : 'frontDoor', # gets sent with updates