From 849b3caebb306e59ccd12d0ca0d5c471c27d54d0 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Wed, 17 Nov 2021 16:52:29 +0100 Subject: Replace GNURadio scripts with network code --- src/gr-fadingui/python/dearpygui_sink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gr-fadingui') diff --git a/src/gr-fadingui/python/dearpygui_sink.py b/src/gr-fadingui/python/dearpygui_sink.py index 353f2d9..bca780d 100644 --- a/src/gr-fadingui/python/dearpygui_sink.py +++ b/src/gr-fadingui/python/dearpygui_sink.py @@ -27,7 +27,7 @@ from gnuradio import gr class dearpygui_sink(gr.sync_block): """ - docstring for block dearpygui_sink + DearPyGUI Sink """ def __init__(self, sock_addr, ui_element_id): gr.sync_block.__init__(self, @@ -40,7 +40,7 @@ class dearpygui_sink(gr.sync_block): self.srv = urlparse(sock_addr) def send(self, value): - data = bytes(repr(value), "ascii") + data = value.tobytes() sent = self.socket.sendto(data, (self.srv.hostname, self.srv.port)) return len(data) == sent -- cgit v1.2.1