Skip to content

Commit 530dc2c

Browse files
committed
Updated UART test to transmit bytearray instead of string
1 parent 7221e6b commit 530dc2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_boardtest/boardtest_uart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def run_test(pins, tx_pin=TX_PIN_NAME, rx_pin=RX_PIN_NAME, baud_rate=BAUD_RATE):
9292
test_str += chr(random.randint(ASCII_MIN, ASCII_MAX))
9393

9494
# Transmit test string
95-
uart.write(test_str)
95+
uart.write(bytearray(test_str))
9696
print("Transmitting:\t" + test_str)
9797

9898
# Wait for received string

0 commit comments

Comments
 (0)