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()
This commit is contained in:
Peter Hutterer 2018-02-08 14:11:14 +10:00
parent f684a0efb3
commit 7f230859fe
1 changed files with 2 additions and 2 deletions

View File

@ -262,8 +262,8 @@ class WacomDevice(GObject.Object):
def set_time(self): def set_time(self):
# Device time is UTC # Device time is UTC
self.current_time = time.strftime('%y%m%d%H%M%S', time.gmtime()) current_time = time.strftime('%y%m%d%H%M%S', time.gmtime())
args = [int(i) for i in binascii.unhexlify(self.current_time)] args = [int(i) for i in binascii.unhexlify(current_time)]
self.send_nordic_command_sync(command=0xb6, self.send_nordic_command_sync(command=0xb6,
expected_opcode=0xb3, expected_opcode=0xb3,
arguments=args) arguments=args)