Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion joycontrol/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ def sub_0x02_device_info(self, mac, fm_version=(0x04, 0x00), controller=Controll
self.data[offset + 3] = 0x02
self.data[offset + 4: offset + 10] = mac
self.data[offset + 10] = 0x01
self.data[offset + 11] = 0x01
if controller == Controller.PRO_CONTROLLER:
self.data[offset + 11] = 0x02
else:
self.data[offset + 11] = 0x01

def sub_0x10_spi_flash_read(self, offset, size, data):
if len(data) != size:
Expand Down