Skip to content

Commit

Permalink
reactivate response check
Browse files Browse the repository at this point in the history
  • Loading branch information
reald committed Apr 29, 2022
1 parent 9385316 commit 9c549db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/hid-monitor-control.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ def set_val(dev, num, val):
time.sleep(0.05)

tmp = dev.get_feature_report(7, 8)
#if tmp[0] != 0x07:
# raise Exception
#for i in range(1,7):
# if tmp[i] != buf[i]:
# raise Exception
if tmp[0] != 0x07:
raise Exception
for i in range(1,7):
if tmp[i] != buf[i]:
raise Exception

def get_val(dev, num):
buf = [0x03, 0x01, 0xFF, num & 255, num >> 8]
Expand Down

0 comments on commit 9c549db

Please sign in to comment.