Skip to content

Commit 45aa22a

Browse files
author
neil.hamilton
committed
Fix bug with usbtc08.py
1 parent afd3d1d commit 45aa22a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

picosdk/usbtc08.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ def __init__(self):
2828
class USBTC08_INFO(Structure):
2929
_pack_ = 1
3030
_fields_ = [("size", c_int16),
31-
("DriverVersion", c_int8),
31+
("DriverVersion", c_char * 12),
3232
("PicoppVersion", c_int16),
3333
("HardwareVersion", c_int16),
3434
("Variant", c_int16),
35-
("szSerial[USBTC08_MAX_SERIAL_CHAR]", c_int8),
36-
("szCalDate[USBTC08_MAX_DATE_CHARS]", c_int8)]
35+
("szSerial[USBTC08_MAX_SERIAL_CHAR]", c_char * 11),
36+
("szCalDate[USBTC08_MAX_DATE_CHARS]", c_char * 9)]
3737

3838
doc = """ int16_t usb_tc08_open_unit
3939
(

0 commit comments

Comments
 (0)