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>
pull/153/head
Peter Hutterer 2019-08-01 15:29:33 +10:00
parent fd02453279
commit 910bea8898
1 changed files with 7 additions and 0 deletions

View File

@ -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):
'''