Browse Source

Corrected F-keys, though its still untested.

pyserial_fix
Scott Petersen 12 years ago
parent
commit
9ba4d6e9d7
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      pyad2usb/ad2usb.py
  2. +1
    -1
      test.py

+ 4
- 4
pyad2usb/ad2usb.py View File

@@ -167,10 +167,10 @@ class AD2USB(object):
on_write = event.Event('Called when data has been written to the device.')

# Constants
F1 = str(1) + str(1) + str(1)
F2 = str(2) + str(2) + str(2)
F3 = str(3) + str(3) + str(3)
F4 = str(4) + str(4) + str(4)
F1 = unichr(1) + unichr(1) + unichr(1)
F2 = unichr(2) + unichr(2) + unichr(2)
F3 = unichr(3) + unichr(3) + unichr(3)
F4 = unichr(4) + unichr(4) + unichr(4)

def __init__(self, device):
"""


+ 1
- 1
test.py View File

@@ -222,8 +222,8 @@ def test_socket():

a2u.open()
#a2u.reboot()
time.sleep(2)
a2u.get_config()
print pyad2usb.ad2usb.AD2USB.F1

print dev._id



Loading…
Cancel
Save