Quick fix for error (hopefully)
This commit is contained in:
parent
9cfab18172
commit
dc08a215c8
@ -122,7 +122,7 @@ class USBHIDInterface(HIDInterface):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def on_set_report(self, report_data, _report_id, _report_type):
|
def on_set_report(self, report_data, _report_id, _report_type):
|
||||||
if report_data[1] == 0x50:
|
if report_data[0] == 0x50:
|
||||||
print("Entering firmware update mode, power cycle to undo. Goodbye for now!")
|
print("Entering firmware update mode, power cycle to undo. Goodbye for now!")
|
||||||
machine.bootloader()
|
machine.bootloader()
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user