EnotYoyo / pysphero

Unofficial Sphero V2 api for bluetooth low energy toys
MIT License
40 stars 16 forks source link

Remove the packet variable from cancel_notify function #13

Closed EnotYoyo closed 4 years ago

EnotYoyo commented 4 years ago
    def stop_notify(self, packet: Packet):
        if self._notify_future is None:
            raise PySpheroRuntimeError("Future not found")

        logger.debug(f"[NOTIFY_WORKER {packet}] Cancel")
        self._notify_future.cancel()
        self._notify_future = None
EnotYoyo commented 4 years ago

Done