Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Nov 13, 2024
1 parent dbe5472 commit 55fbea5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions moler/device/proxy_pc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def on_connection_lost(self, connection):
self._set_state(NOT_CONNECTED)

def _detect_after_open_prompt(self, set_callback):
print("Detecting prompt")
self.logger.debug("Command to detect prompt will be sent.")
self._prompt_detected = False
self._after_open_prompt_detector = Wait4(
detect_patterns=[rf'^(.+){self._detecting_prompt_cmd}'],
Expand All @@ -273,8 +273,6 @@ def _detect_after_open_prompt(self, set_callback):
self.io_connection.moler_connection.sendline("")
self.io_connection.moler_connection.sendline(self._detecting_prompt_cmd)

# detector.await_done(timeout=self._prompt_detector_timeout)

def _set_after_open_prompt(self, event):
occurrence = event.get_last_occurrence()
prompt = occurrence['groups'][0].rstrip()
Expand Down

0 comments on commit 55fbea5

Please sign in to comment.