From 7f230859fe2741d55ffb9735f95f0a6ad6ddcd91 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 8 Feb 2018 14:11:14 +1000 Subject: [PATCH] wacom: don't save the current time This is a write-only value. And for read_time() if we want to compare timestamps we can just do so with time.time() --- tuhi/wacom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index 1aad8ff..7396c1d 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -262,8 +262,8 @@ class WacomDevice(GObject.Object): def set_time(self): # Device time is UTC - self.current_time = time.strftime('%y%m%d%H%M%S', time.gmtime()) - args = [int(i) for i in binascii.unhexlify(self.current_time)] + current_time = time.strftime('%y%m%d%H%M%S', time.gmtime()) + args = [int(i) for i in binascii.unhexlify(current_time)] self.send_nordic_command_sync(command=0xb6, expected_opcode=0xb3, arguments=args)