Skip to content

Commit

Permalink
Removed unused imports and added PDM badge to README
Browse files Browse the repository at this point in the history
  • Loading branch information
krister-ts committed Sep 7, 2023
1 parent bcbe26b commit c1bb4f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 6 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
ftd2xx-aio
==========

|python| |black|
|python|
|black|
|pdm|

ftd2xx-aio is an extension of `ftd2xx`_ (a wrapper around the `D2XX drivers`_ for FTDI devices)
that adds a transport/protocol layer (similar to `pyserial-asyncio`_). This allows the user to
Expand Down Expand Up @@ -34,3 +36,6 @@ to your project here and there. You are so great to work with!
.. |python|
image:: https://img.shields.io/badge/python-3.9%2B-blue.svg
:target: https://www.python.org/
.. |pdm|
image:: https://img.shields.io/badge/pdm-managed-blueviolet
:target: https://pdm.fming.dev
4 changes: 1 addition & 3 deletions ftd2xx_aio/transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"""Asyncio transports for FTDI D2XX devices."""
from abc import abstractmethod
import asyncio
from warnings import warn
from ftd2xx import FTD2XX, DeviceError
from ftd2xx.ftd2xx import LOGGER
from ftd2xx.defines import ModemStatus

from .protocols import FTD2xxProtocol
Expand Down Expand Up @@ -188,7 +186,7 @@ def is_reading(self) -> bool:

def pause_reading(self):
"""Pause the receiving end of the transport.
No data will be passed to the protocols data_received() method
No data will be passed to the protocol's data_received() method
until resume_reading() is called.
"""
self._remove_reader()
Expand Down

0 comments on commit c1bb4f0

Please sign in to comment.