dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/33213 )
Change subject: ts_31_102: fix typo
......................................................................
ts_31_102: fix typo
Change-Id: Ic8f93a55b974984472356f48518da91c6a521409
---
M pySim/ts_31_102.py
1 file changed, 10 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/13/33213/1
diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py
index 14e7cae..342ea87 100644
--- a/pySim/ts_31_102.py
+++ b/pySim/ts_31_102.py
@@ -1655,7 +1655,7 @@
This emulates a terminal (modem/phone) having received a SMS
with a PID of 'SMS for the SIM card'. You can use this
command in the context of testing OTA related features
- without a modem/phone or a cellular netwokr."""
+ without a modem/phone or a cellular network."""
tpdu_ie = SMS_TPDU()
tpdu_ie.from_bytes(h2b(opts.TPDU))
dev_ids = DeviceIdentities(
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/33213
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ic8f93a55b974984472356f48518da91c6a521409
Gerrit-Change-Number: 33213
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange
laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/33208 )
Change subject: Fix result parsing of "suspend_uicc"
......................................................................
Fix result parsing of "suspend_uicc"
prior to this patch, the suspend_uicc command would always cause a
python exception as a list of integers was returned by decode_duration rather than a single integer (that can be used with %u format string).
Change-Id: I981e9d46607193176b28cb574564e6da546501ba
---
M pySim/commands.py
1 file changed, 13 insertions(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
diff --git a/pySim/commands.py b/pySim/commands.py
index b0f8b39..6acdb2e 100644
--- a/pySim/commands.py
+++ b/pySim/commands.py
@@ -610,7 +610,7 @@
def decode_duration(enc: Hexstr) -> int:
time_unit = enc[:2]
- length = h2i(enc[2:4])
+ length = h2i(enc[2:4])[0]
if time_unit == '04':
return length * 10*24*60*60
elif time_unit == '03':
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/33208
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I981e9d46607193176b28cb574564e6da546501ba
Gerrit-Change-Number: 33208
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged