<p>dexter <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/24008">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">commands: pad short data input in update_record()<br><br>The method update_record as a "force_len" parameter, which is somewhat<br>irretatating. Some explainatory comments and a reformat of the if<br>statement will help to make it more understandable to the api user.<br><br>In the non force_len case the method determines the record length from<br>the select response and throws an exception if the data input does not<br>match that length. This makes sense if the data input exceeds the<br>record length of the file but if the data input is less then the record<br>length the situation is fixable by padding the input with 0xff. This<br>also a quite common case because in some situation it is not guaranteed<br>that the data will fill the entire record.<br><br>Change-Id: I9a5df0e46c3dd2e87d447c5c01cf15844b0eed07<br>Related: OS#4963<br>---<br>M pySim/commands.py<br>1 file changed, 12 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/08/24008/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/24008">change 24008</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/c/pysim/+/24008"/><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-Change-Id: I9a5df0e46c3dd2e87d447c5c01cf15844b0eed07 </div>
<div style="display:none"> Gerrit-Change-Number: 24008 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>