MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / __init__

Method __init__

src/ext/makerbot_driver/MachineDetector.py:78–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 them. This is used to use MakerBot's pyserial to detect machines. """
77
78 def __init__(self):
79 self._log = logging.getLogger(self.__class__.__name__)
80 self.machines_recently_seen = {}
81 # ^ Bots seen since the inception of this object
82 self.machines_just_seen = {}
83 # ^ Bots seen in the last scan,
84 self.list_ports_by_vid_pid = list_ports_generator
85 # ^ Save func as a variable for testing purposes. hacky
86
87 def get_machine_name_from_vid_pid(self, vid, pid):
88 machine_name = None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected