mirror of https://gerrit.osmocom.org/pysim
Assume first record number if caller specifies none
This fixes a regression introduced in Change-Id I02d6942016dd0631b21d1fd301711c13cb27962b which added support for different encoding/decoding of records by their record number. Change-Id: I0c5fd21a96d2344bfd9551f31030eba0769636bf
This commit is contained in:
parent
9b9efb6a7a
commit
caa94b5a81
|
@ -945,7 +945,7 @@ class LinFixedEF(CardEF):
|
||||||
self._construct = None
|
self._construct = None
|
||||||
self._tlv = None
|
self._tlv = None
|
||||||
|
|
||||||
def decode_record_hex(self, raw_hex_data: str, record_nr: int) -> dict:
|
def decode_record_hex(self, raw_hex_data: str, record_nr: int = 1) -> dict:
|
||||||
"""Decode raw (hex string) data into abstract representation.
|
"""Decode raw (hex string) data into abstract representation.
|
||||||
|
|
||||||
A derived class would typically provide a _decode_record_bin() or _decode_record_hex()
|
A derived class would typically provide a _decode_record_bin() or _decode_record_hex()
|
||||||
|
|
Loading…
Reference in New Issue