parameters: (self)
docstring: close serial port
docstring_summary: close serial port
docstring_tokens: close serial port
function: def Close_Engine(self):
          """
          close serial port
          """
          global Ret
          # print(self.main_engine.is_open)  # check if the serial port is open
          # determine whether to open
          if self.main_engine.is_open:
              self.main_engine.close()  # close serial port
              Ret = False
function_tokens: def Close_Engine ( self ) : global Ret # print(self.main_engine.is_open)  # check if the serial port is open # determine whether to open if self . main_engine . is_open : self . main_engine . close ( ) # close serial port Ret = False