F1: Introduce new submodel "F1 Plus"

This commit is contained in:
Keir Fraser
2021-05-01 15:20:07 +01:00
parent d5c0650df4
commit c6e86add16
16 changed files with 391 additions and 419 deletions

View File

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

View File

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