Skip to content

Commit

Permalink
Uses methods introduced in version 3.0. Older methods have been depre…
Browse files Browse the repository at this point in the history
…cated.
  • Loading branch information
lucashicks1 committed Oct 17, 2023
1 parent f048617 commit 6e9972e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/figurines/microcontroller_comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def initialise_serial(port):
def serial_disconnect():
global serialPort, connect_status
_LOGGER.info("Disconnecting serial port")
serialPort.flushInput()
serialPort.flushOutput()
serialPort.reset_input_buffer()
serialPort.reset_output_buffer()
_LOGGER.info("Flushing input and output")
serialPort.close()
_LOGGER.info("Closing serial port")
Expand Down

0 comments on commit 6e9972e

Please sign in to comment.