Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pylacrosse/lacrosse.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import logging
import re
import threading
import time

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -76,9 +77,12 @@ def start_scan(self):
self._start_worker()

def _write_cmd(self, cmd):
"""ensure there is enough time between commands"""
time.sleep(0.5)
"""Write a cmd."""
self._serial.write(cmd.encode())


@staticmethod
def _parse_info(line):
"""
Expand Down