Add open9a so that open97 will still attempt to open 0097 device.
This commit is contained in:
parent
fd202bd0d8
commit
a04c6d127b
1 changed files with 9 additions and 2 deletions
11
prototype.py
11
prototype.py
|
|
@ -6,8 +6,7 @@ from proto9x.flash import read_flash
|
|||
from proto9x.sensor import *
|
||||
from proto9x.sid import *
|
||||
|
||||
def open97():
|
||||
usb.open()
|
||||
def open_common():
|
||||
usb.send_init()
|
||||
|
||||
# try to init TLS session from the flash
|
||||
|
|
@ -19,6 +18,14 @@ def open97():
|
|||
#usb.trace_enabled = True
|
||||
#tls.trace_enabled = True
|
||||
|
||||
def open97():
|
||||
usb.open(vendor=0x138a, product=0x0097)
|
||||
open_common()
|
||||
|
||||
def open9a():
|
||||
usb.open(vendor=0x06cb, product=0x009a)
|
||||
open_common()
|
||||
|
||||
def load97():
|
||||
#usb.trace_enabled = True
|
||||
#tls.trace_enabled = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue