Add open9a so that open97 will still attempt to open 0097 device.

This commit is contained in:
Viktor Dragomiretskyy 2020-07-03 20:24:11 +12:00
parent fd202bd0d8
commit a04c6d127b

View file

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