Skip to content

Commit ad99eca

Browse files
Fix missing encoding from bytearray use
1 parent 9fd3a23 commit ad99eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mindwidgets_df1201s.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _send_query(self, command: str, arg=None) -> str:
105105
print("DFPlayer Command: ", at_command)
106106

107107
# send the AT command
108-
self._uart.write(bytearray(f"{at_command}\r\n"))
108+
self._uart.write(bytearray(f"{at_command}\r\n", "ascii"))
109109

110110
# read the response and strip the \r\n
111111
response = self._uart.readline()

0 commit comments

Comments
 (0)