mirror of
https://github.com/bkerler/edl.git
synced 2025-03-13 16:53:26 -04:00
Update seriallib.py
This commit is contained in:
parent
4a656467df
commit
5227493816
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue