mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-24 14:28:32 +03:00
runtime: cosmetic: prnounce file reference data
One of the most important properties of the RuntimeLchan are the selected_file/adf properties. Let's reformat the code so that those properties are more pronounced. Change-Id: I4aa028f66879b7d6c2a1cd102cda8d8ca5ff48b1 Related: OS#5418
This commit is contained in:
@@ -170,11 +170,13 @@ class RuntimeLchan:
|
|||||||
def __init__(self, lchan_nr: int, rs: RuntimeState):
|
def __init__(self, lchan_nr: int, rs: RuntimeState):
|
||||||
self.lchan_nr = lchan_nr
|
self.lchan_nr = lchan_nr
|
||||||
self.rs = rs
|
self.rs = rs
|
||||||
|
self.scc = self.rs.card._scc.fork_lchan(lchan_nr)
|
||||||
|
|
||||||
|
# File reference data
|
||||||
self.selected_file = self.rs.mf
|
self.selected_file = self.rs.mf
|
||||||
self.selected_adf = None
|
self.selected_adf = None
|
||||||
self.selected_file_fcp = None
|
self.selected_file_fcp = None
|
||||||
self.selected_file_fcp_hex = None
|
self.selected_file_fcp_hex = None
|
||||||
self.scc = self.rs.card._scc.fork_lchan(lchan_nr)
|
|
||||||
|
|
||||||
def add_lchan(self, lchan_nr: int) -> 'RuntimeLchan':
|
def add_lchan(self, lchan_nr: int) -> 'RuntimeLchan':
|
||||||
"""Add a new logical channel from the current logical channel. Just affects
|
"""Add a new logical channel from the current logical channel. Just affects
|
||||||
|
|||||||
Reference in New Issue
Block a user