Unify processed data variable name between command and response.
This commit is contained in:
parent
cdf48d400f
commit
9544d6c85b
|
@ -145,7 +145,7 @@ class Command():
|
|||
self.address = kwargs.pop('mode', 'rs232')
|
||||
self.command_name = kwargs.pop('command_name', '')
|
||||
self.time = None
|
||||
self.data_processed = ''
|
||||
self.processed_data = ''
|
||||
if self.command_name:
|
||||
self.rfu = '\x00'
|
||||
self.type_cmd = STANDARD_COMMANDS[self.command_name]['type']
|
||||
|
@ -156,7 +156,7 @@ class Command():
|
|||
self.data_to_process = kwargs.pop('data_to_process', None)
|
||||
if self.data_to_process:
|
||||
self.process_data()
|
||||
data = self.data_processed
|
||||
data = self.processed_data
|
||||
self.lout = utils.get_length_on_2_bytes(data)
|
||||
self.command = self.rfu + self.type_cmd + self.code_cmd + \
|
||||
self.reserved + self.lout + data
|
||||
|
@ -219,7 +219,7 @@ class ReaderCommand(Command):
|
|||
self.address = kwargs.pop('mode', 'rs232')
|
||||
self.command_name = kwargs.pop('command_name', '')
|
||||
self.time = None
|
||||
self.data_processed = ''
|
||||
self.processed_data = ''
|
||||
if self.command_name:
|
||||
self.rfu = '\x00'
|
||||
self.type_cmd = self.reader.commands[self.command_name]['type']
|
||||
|
@ -230,7 +230,7 @@ class ReaderCommand(Command):
|
|||
self.data_to_process = kwargs.pop('data_to_process', None)
|
||||
if self.data_to_process:
|
||||
self.process_data()
|
||||
data = self.data_processed
|
||||
data = self.processed_data
|
||||
self.lout = utils.get_length_on_2_bytes(data)
|
||||
self.command = self.rfu + self.type_cmd + self.code_cmd + \
|
||||
self.reserved + self.lout + data
|
||||
|
|
|
@ -74,7 +74,7 @@ def set_rfsettings(command):
|
|||
i += 1
|
||||
for _ in range(i, 16):
|
||||
data += '\x00\x00\x00\x00'
|
||||
command.data_processed = data
|
||||
command.processed_data = data
|
||||
|
||||
|
||||
def set_rfsettings_saved(command):
|
||||
|
|
Reference in New Issue