mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 01:18:06 +00:00
delete_file() supports p1/p2
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
657ee18730
commit
9291c2b4e3
1 changed files with 5 additions and 2 deletions
|
|
@ -240,8 +240,11 @@ class Device:
|
|||
raise ValueError('Bad KeyType')
|
||||
return keyid
|
||||
|
||||
def delete_file(self, fid):
|
||||
self.send(command=0xE4, data=[fid >> 8, fid & 0xff])
|
||||
def delete_file(self, p1, p2=None):
|
||||
if (p2):
|
||||
self.send(command=0xE4, data=[p1, p2])
|
||||
else:
|
||||
resp = self.delete_file(p1=p1 >> 8, p2=p1 & 0xff)
|
||||
|
||||
def get_contents(self, p1, p2=None):
|
||||
if (p2):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue