Skip to content

Commit

Permalink
add Detection serail connection to wait status to connect to avoid fa…
Browse files Browse the repository at this point in the history
…lse error message
  • Loading branch information
giloser committed Aug 15, 2020
1 parent 4a5d181 commit 6a3fc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_telegram/telegramCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ def ConConnect(self,chat_id,parameter):
self.main._printer.connect(port=self.conSettingsTemp[0],baudrate=self.conSettingsTemp[1],profile=self.conSettingsTemp[2])
self.conSettingsTemp = []
con = self.main._printer.get_current_connection()
waitStates=["Offline","Detecting baudrate","Connecting","Opening serial port","Detecting serial port"]
waitStates=["Offline","Detecting baudrate","Connecting","Opening serial port","Detecting serial port","Detecting serial connection"]
while any(s in con[0] for s in waitStates):
con = self.main._printer.get_current_connection()
self._logger.debug("EXIT WITH: "+str(con[0]))
Expand Down

0 comments on commit 6a3fc8f

Please sign in to comment.