mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-10-29 15:13:31 +03:00
esim.saip.File: Proper ARR conversion of template (into) to file (bytes)
The encoding of the access rule reference is different in FileTemplate vs File, let's make sure we properly convert it when instantiating a File from a FileTemplate. Change-Id: Ibb8afb85cc0006bc5c59230ebf28b2c0c1a8a8ed
This commit is contained in:
1 parent
0516e4c47a
commit
0f1ffd20ef
1 file changed
+1
-1
@@ -178,7 +178,7 @@ class File:
|
||||
self.file_type = template.file_type
|
||||
self.fid = template.fid
|
||||
self.sfi = template.sfi
|
||||
self.arr = template.arr
|
||||
self.arr = template.arr.to_bytes(1)
|
||||
if hasattr(template, 'rec_len'):
|
||||
self.rec_len = template.rec_len
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user