Tools: extracted functionality out of idf_monitor
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
|
||||
import os
|
||||
import queue
|
||||
import time
|
||||
|
||||
from serial.tools.miniterm import Console
|
||||
@@ -22,11 +23,6 @@ from .console_parser import ConsoleParser
|
||||
from .constants import CMD_STOP, TAG_CMD
|
||||
from .stoppable_thread import StoppableThread
|
||||
|
||||
try:
|
||||
import queue
|
||||
except ImportError:
|
||||
import Queue as queue # type: ignore
|
||||
|
||||
|
||||
class ConsoleReader(StoppableThread):
|
||||
""" Read input keys from the console and push them to the queue,
|
||||
|
||||
Reference in New Issue
Block a user