From d6c857205ab3f0f976c8e7d21d2e4da18db0dbdd Mon Sep 17 00:00:00 2001 From: mdiea Date: Sun, 9 Mar 2025 23:44:33 -0300 Subject: [PATCH] windows 10 issue --- .gitignore | 1 + ut61eplus/ut61eplus.py | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index eeb8a6e..f70a57b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ **/__pycache__ +venv \ No newline at end of file diff --git a/ut61eplus/ut61eplus.py b/ut61eplus/ut61eplus.py index c706538..a22e734 100644 --- a/ut61eplus/ut61eplus.py +++ b/ut61eplus/ut61eplus.py @@ -286,8 +286,8 @@ def __str__(self): class UT61EPLUS: - CP2110_VID = 0x10c4 - CP2110_PID = 0xEA80 + CP2110_VID = 0x1a86 + CP2110_PID = 0xe429 _SEQUENCE_GET_NAME = bytes.fromhex('AB CD 03 5F 01 DA') _SEQUENCE_SEND_DATA = bytes.fromhex('AB CD 03 5E 01 D9') @@ -322,6 +322,9 @@ def _write(self, b: bytes): buf = [] buf.append(len(b)) buf += b + import sys + if sys.platform == "win32": + buf.insert(0, 0x00) # Agregar Report ID si no está presente self.dev.write(buf) def _readResponse(self) -> bytes: