software/dump/sigrok: add limitation to 8 bits, will be fixed later

This commit is contained in:
Florent Kermarrec 2017-06-23 10:50:08 +02:00
parent 2048acf80e
commit d8649fca5f
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ samplerate = {} KHz
f.close() f.close()
def write_data(self): def write_data(self):
# TODO: study bytes/bits ordering to remove limitation
assert len(self.variables) < 8
data_bits = math.ceil(len(self.variables)/8)*8 data_bits = math.ceil(len(self.variables)/8)*8
data_len = 0 data_len = 0
for variable in self.variables: for variable in self.variables: