Skip to content

Commit

Permalink
add hw disconnect (for autotests)
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Oct 24, 2023
1 parent ece5e79 commit d973ee6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions software/script/chameleon_cli_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,17 @@ def on_exec(self, args: argparse.Namespace):
self.device_com.close()


@hw.command('disconnect')
class HWDisconnect(BaseCLIUnit):
def args_parser(self) -> ArgumentParserNoExit:
parser = ArgumentParserNoExit()
parser.description = 'Disconnect chameleon'
return parser

def on_exec(self, args: argparse.Namespace):
self.device_com.close()


@hw.command('mode')
class HWMode(DeviceRequiredUnit):
def args_parser(self) -> ArgumentParserNoExit:
Expand Down

0 comments on commit d973ee6

Please sign in to comment.