diff --git a/lib/constants.py b/lib/constants.py index 074a5d9..2f69403 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -266,4 +266,4 @@ def internal_path(*path_parts) -> str: b"\x04": b"\x04", } -BLE_SERVICE_IDENTIFIER = "0000abf0-0000-1000-8000-00805f9b34fb" +DSG_STMIN = 900000 \ No newline at end of file diff --git a/lib/dq381_flash_utils.py b/lib/dq381_flash_utils.py index 467112d..5544d65 100644 --- a/lib/dq381_flash_utils.py +++ b/lib/dq381_flash_utils.py @@ -244,6 +244,6 @@ def flash_bin( interface=interface, interface_path=interface_path, workshop_code=workshop_code.as_bytes(), - stmin_override=900000, + stmin_override=constants.DSG_STMIN, dq3xx_hack=True, ) diff --git a/lib/dsg_flash_utils.py b/lib/dsg_flash_utils.py index 8918690..0599dfe 100644 --- a/lib/dsg_flash_utils.py +++ b/lib/dsg_flash_utils.py @@ -223,5 +223,5 @@ def flash_bin( callback=callback, interface=interface, interface_path=interface_path, - stmin_override=stmin_override, + stmin_override=constants.DSG_STMIN, )