fixed hre color
This commit is contained in:
@@ -80,8 +80,8 @@ class Decoder(srd.Decoder):
|
|||||||
)
|
)
|
||||||
annotations = (
|
annotations = (
|
||||||
('command', 'Command'),
|
('command', 'Command'),
|
||||||
('write_data', 'Write'),
|
|
||||||
('read_data', 'Read'),
|
('read_data', 'Read'),
|
||||||
|
('write_data', 'Write'),
|
||||||
('reset', 'Reset'),
|
('reset', 'Reset'),
|
||||||
('warnings', 'Warnings'),
|
('warnings', 'Warnings'),
|
||||||
)
|
)
|
||||||
@@ -194,11 +194,9 @@ class Decoder(srd.Decoder):
|
|||||||
|
|
||||||
#cs off
|
#cs off
|
||||||
elif self._data_is_cmd:
|
elif self._data_is_cmd:
|
||||||
#self.putd(self._data_begin, self.samplenum, [0, [self.format.format(self._data)]])
|
self.putd(self._data_begin, self.samplenum, [0, [self.format.format(self._data)]])
|
||||||
self.putd(self._data_begin, self.samplenum, [1, [self.format.format(data)]])
|
|
||||||
else:
|
else:
|
||||||
#self.putd(self._data_begin, self.samplenum, [1 if self._data_dir else 2, [self.format.format(self._data)]])
|
self.putd(self._data_begin, self.samplenum, [2 if self._data_dir else 1, [self.format.format(self._data)]])
|
||||||
self.putd(self._data_begin, self.samplenum, [0, [self.format.format(data)]])
|
|
||||||
|
|
||||||
# check rst switch
|
# check rst switch
|
||||||
if operation[4] != self._last_operation[4]:
|
if operation[4] != self._last_operation[4]:
|
||||||
|
|||||||
Reference in New Issue
Block a user