コード例 #1
0
def get_version():
    """Get the version of the firmware installed"""
    with get_device() as dev:

        v = dev.send_recv(CCProtocolPacker.version())

        click.echo(v)
コード例 #2
0
ファイル: cli.py プロジェクト: justinmoon/ckcc-protocol
def get_version():
    "Get the version of the firmware installed"

    dev = ColdcardDevice(sn=force_serial)

    v = dev.send_recv(CCProtocolPacker.version())

    click.echo(v)
コード例 #3
0
ファイル: coldcard.py プロジェクト: yo5eff/electrum-ecc
 def get_version(self):
     # gives list of strings
     return self.dev.send_recv(CCProtocolPacker.version(),
                               timeout=1000).split('\n')
コード例 #4
0
ファイル: coldcard.py プロジェクト: neocogent/electrum
 def get_version(self):
     # gives list of strings
     return self.dev.send_recv(CCProtocolPacker.version(), timeout=1000).split('\n')