diff --git a/host/greatfet/commands/greatfet_logic.py b/host/greatfet/commands/greatfet_logic.py index 7e851849..9d46a910 100755 --- a/host/greatfet/commands/greatfet_logic.py +++ b/host/greatfet/commands/greatfet_logic.py @@ -165,7 +165,7 @@ def background_process_data(termination_request, args, bus_width, bin_file, empt if args.pulseview or args.binary: bin_file.write(samples) if args.write_to_stdout: - sys.stdout.write(samples) + sys.stdout.buffer.write(samples) # ... and add the buffer back to our empty list. empty_buffers.append(active_buffer) @@ -210,6 +210,7 @@ def main(): # --quiet flag. if args.write_to_stdout: log_function = log_silent + bin_file = None else: log_function = parser.get_log_function()