From 56b4c49b5e79c410ee6cf2c94c2680fd645a71be Mon Sep 17 00:00:00 2001 From: ThisIsBrady Date: Sat, 10 Feb 2024 03:21:10 -0600 Subject: [PATCH] Fix sending char packets --- RoveComm_Tester/QtSender.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RoveComm_Tester/QtSender.py b/RoveComm_Tester/QtSender.py index 7c9f370..294a93a 100644 --- a/RoveComm_Tester/QtSender.py +++ b/RoveComm_Tester/QtSender.py @@ -368,6 +368,8 @@ def sendEvent(self): for i in range(0, self.data_length): if self.data_type_cb.currentText() == "Float" or self.data_type_cb.currentText() == "Double": data = (data) + (float(self.data_array[i].text()),) + elif self.data_type_cb.currentText() == "Char": + data = (data) + (bytes(self.data_array[i].text(), "ascii"),) else: data = (data) + (int(self.data_array[i].text()),)