Browse Source

Updated for changed open interface.

pyserial_fix
Scott Petersen 11 years ago
parent
commit
026d697735
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      firmwareupload.py

+ 1
- 1
firmwareupload.py View File

@@ -46,7 +46,7 @@ def main():
print "Flashing device: {0}\r\nFirmware: {1}".format(device, firmware) print "Flashing device: {0}\r\nFirmware: {1}".format(device, firmware)


dev = pyad2usb.ad2usb.devices.SerialDevice(interface=device) dev = pyad2usb.ad2usb.devices.SerialDevice(interface=device)
dev.open(interface=device, baudrate=19200)
dev.open(baudrate=19200)


time.sleep(3) time.sleep(3)
pyad2usb.ad2usb.util.Firmware.upload(dev, firmware, handle_firmware) pyad2usb.ad2usb.util.Firmware.upload(dev, firmware, handle_firmware)


Loading…
Cancel
Save