Update seriallib.py

This commit is contained in:
Bjoern Kerler 2022-03-23 12:34:06 +01:00 committed by GitHub
parent 4a656467df
commit 5227493816
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,19 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# (c) B.Kerler 2018-2021
# (c) B.Kerler 2018-2022
import os.path
import time
import termios
import sys
if not sys.platform.startswith('win32'):
import termios
def _reset_input_buffer():
return
def _reset_input_buffer_org(self):
return termios.tcflush(self.fd, termios.TCIFLUSH)
if not sys.platform.startswith('win32'):
return termios.tcflush(self.fd, termios.TCIFLUSH)
import serial
import serial.tools.list_ports