From 910bea889800d0ec79a2758618d4115de4d14781 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 1 Aug 2019 15:29:33 +1000 Subject: [PATCH] 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 --- tuhi/wacom.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index 0b572bd..0d4bc7a 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -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): '''