mirror of
https://github.com/keirf/greaseweazle-firmware.git
synced 2025-10-31 11:06:44 -07:00
F1: Introduce new submodel "F1 Plus"
This commit is contained in:
@@ -15,7 +15,8 @@ from greaseweazle.tools import util
|
||||
from greaseweazle import usb as USB
|
||||
from greaseweazle import version
|
||||
|
||||
model_id = { 1: { 0: 'F1' },
|
||||
model_id = { 1: { 0: 'F1',
|
||||
1: 'F1 Plus' },
|
||||
7: { 0: 'F7 v1',
|
||||
1: 'F7 Plus (Ant Goffart, v1)',
|
||||
2: 'F7 Lightning',
|
||||
|
||||
@@ -282,7 +282,8 @@ def usb_open(devicename, is_update=False, mode_check=True):
|
||||
usb = USB.Unit(serial.Serial(devicename))
|
||||
usb.port_info = port_info(devicename)
|
||||
is_win7 = (platform.system() == 'Windows' and platform.release() == '7')
|
||||
usb.jumperless_update = usb.hw_model != 1 and not is_win7
|
||||
usb.jumperless_update = ((usb.hw_model, usb.hw_submodel) != (1, 0)
|
||||
and not is_win7)
|
||||
|
||||
if not mode_check:
|
||||
return usb
|
||||
|
||||
Reference in New Issue
Block a user