修改linux和window下的ch341兼容问题

This commit is contained in:
jinggaoyang-68
2024-12-10 12:55:02 +08:00
parent 22786992f7
commit f7d0e8755d
3 changed files with 52 additions and 50 deletions

View File

@ -3,6 +3,7 @@ from ctypes import Structure, sizeof, c_float, c_uint32, c_uint16
class DynamicYddsComTs(Structure):
_pack_ = 1 # 按 1 字节对齐
_fields_ = [
("nf", c_float),
("nfCap", c_uint32),