wacom: add another nordic function that just takes and returns data
This function doesn't process the data beyond the logging required. It simply sends the request and returns the reply, whatever that is. Currently unused, this is prep work for later. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
fd02453279
commit
910bea8898
|
@ -545,6 +545,13 @@ class WacomProtocolLowLevelComm(GObject.Object):
|
|||
|
||||
return args
|
||||
|
||||
# The callback used by the protocol messages
|
||||
def nordic_data_exchange(self, request, requires_reply=False, userdata=None):
|
||||
if request is not None:
|
||||
self.send_nordic_command(request.opcode, request)
|
||||
if requires_reply:
|
||||
return self.wait_nordic_data(expected_opcode=None, timeout=5)
|
||||
|
||||
|
||||
class WacomRegisterHelper(WacomProtocolLowLevelComm):
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue