Skip to content

Commit

Permalink
fix linebreaks in protocol sniff file
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Nov 29, 2017
1 parent 495f6be commit 1f94ed6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/urh/signalprocessing/ProtocolSniffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ def on_rcv_thread_index_changed(self, old_index, new_index):
self.qt_signals.data_sniffed.emit(old_nmsgs)

if self.sniff_file and not os.path.isdir(self.sniff_file):
with open(self.sniff_file, "a") as myfile:
myfile.write("\n".join(self.plain_bits_str))
plain_bits_str = self.plain_bits_str
if plain_bits_str:
with open(self.sniff_file, "a") as f:
f.write("\n".join(plain_bits_str) + "\n")

if not self.__store_data:
self.messages.clear()
Expand Down

0 comments on commit 1f94ed6

Please sign in to comment.