Skip to content

Commit

Permalink
Fix sending char packets
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsBrady committed Feb 10, 2024
1 parent 5e111a7 commit 56b4c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RoveComm_Tester/QtSender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()),)

Expand Down

0 comments on commit 56b4c49

Please sign in to comment.