<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9986">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cards: return SW in method update_plmnsel() of class Card<br><br>The method update_plmnsel() does not return the status word yet, which<br>causes pysim-prog.py to print an error message that does not influence<br>the functionality but does not look nice.<br><br>- preserve the status word that is returned with update_binary() and<br>  return it properly like the other methods do.<br><br>Change-Id: I54e8e165f87365e8162b36d24efc8f0db62b66da<br>Related: SYS#4245<br>---<br>M pySim/cards.py<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/86/9986/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/cards.py b/pySim/cards.py</span><br><span>index 9be04ff..a72a52f 100644</span><br><span>--- a/pySim/cards.py</span><br><span>+++ b/pySim/cards.py</span><br><span>@@ -87,7 +87,8 @@</span><br><span>           data = self._scc.read_binary(EF['PLMNsel'], length=None, offset=0)</span><br><span>                 size = len(data[0])/2</span><br><span>          hplmn = enc_plmn(mcc, mnc)</span><br><span style="color: hsl(0, 100%, 40%);">-              self._scc.update_binary(EF['PLMNsel'], hplmn + 'ff' * (size-3))</span><br><span style="color: hsl(120, 100%, 40%);">+               data, sw = self._scc.update_binary(EF['PLMNsel'], hplmn + 'ff' * (size-3))</span><br><span style="color: hsl(120, 100%, 40%);">+            return sw</span><br><span> </span><br><span>        def update_smsp(self, smsp):</span><br><span>                 data, sw = self._scc.update_record(EF['SMSP'], 1, rpad(smsp, 84))</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9986">change 9986</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/9986"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I54e8e165f87365e8162b36d24efc8f0db62b66da </div>
<div style="display:none"> Gerrit-Change-Number: 9986 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>