Update solotool.py

pull/105/head
Conor Patrick 2019-02-12 16:37:40 -05:00
rodzic 6c23532f08
commit 45da2f0b32
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -214,13 +214,13 @@ class SoloClient:
def bootloader_version(self,):
data = self.exchange(SoloBootloader.version)
if len(data) > 1:
return (data[0],data[1])
if len(data) > 2:
return (data[0],data[1],data[2])
return data[0]
def solo_version(self,):
data = self.exchange_u2f(SoloExtension.version)
return (data[0],data[1])
return (data[0],data[1],data[2])
def write_flash(self, addr, data):
self.exchange(SoloBootloader.write, addr, data)