Cleanups and memory improvements

This commit is contained in:
William Toohey
2016-12-17 03:35:25 +10:00
parent 92a428a5ed
commit 3873e9d9bf
8 changed files with 45 additions and 44 deletions
@@ -64,7 +64,10 @@ def bootloader_boot():
try:
hid_device = valid_hid_devices[0]
hid_device.open()
output_report_data = [0,0,0,0,0,0,0,0,0,0,0,42]
# switch count + static stuff + report id
output_report_data = [0] * (8 + 9 + 1)
# report ID is 0 at byte 0
output_report_data[1] = 42;
hid_device.send_output_report(output_report_data)
finally: