From dff7ac8d4e721f97d5766adb5f0e434f29a2da41 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 22 Jun 2017 19:20:34 +0200 Subject: [PATCH] software/dump/sigrok: rename capture file to dump --- litescope/software/dump/sigrok.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litescope/software/dump/sigrok.py b/litescope/software/dump/sigrok.py index c8a095b..055c56d 100644 --- a/litescope/software/dump/sigrok.py +++ b/litescope/software/dump/sigrok.py @@ -26,7 +26,7 @@ class SigrokDump(Dump): sigrok version = 0.2.0 [device 1] driver = litescope -capturefile = logic-1 +capturefile = dump unitsize = 1 total probes = {} samplerate = {} KHz @@ -55,7 +55,7 @@ samplerate = {} KHz except: pass datas.append(data) - f = open("logic-1", "wb") + f = open("dump", "wb") for data in datas: f.write(data.to_bytes(data_bits//8, "big")) f.close() @@ -65,7 +65,7 @@ samplerate = {} KHz os.chdir(name) f.write("version") f.write("metadata") - f.write("logic-1") + f.write("dump") os.chdir("..") f.close() @@ -112,7 +112,7 @@ samplerate = {} KHz def read_data(self, name, nprobes): datas = [] - f = open("logic-1", "rb") + f = open("dump", "rb") while True: data = f.read(math.ceil(nprobes/8)) if data == bytes('', "utf-8"):