Skip to content

Commit

Permalink
FIX: fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
T-K-233 committed Aug 17, 2024
1 parent 2e23118 commit 80261a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/socket_echo_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

ser.transmit(b'Hello, world')

ser.setReceiveTimeout(0.1)
ser.set_receive_timeout(0.1)

counter = 0
while True:
Expand Down
2 changes: 1 addition & 1 deletion examples/socket_echo_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
print("Connected by", addr)

ser = SocketSerializer(conn)
ser.setReceiveTimeout(0.1)
ser.set_receive_timeout(0.1)

while True:
buffer = ser.receive()
Expand Down
2 changes: 1 addition & 1 deletion examples/uart_echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

ser.transmit(b"hello")

ser.setReceiveTimeout(0.1)
ser.set_receive_timeout(0.1)

while True:
buffer = ser.receive()
Expand Down

0 comments on commit 80261a6

Please sign in to comment.