<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/23642">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">card_emu: explicitly initialize PTS and TPDU states<br><br>Those are already initialized at various transitions of the master<br>7816 FSM, but let's properly initialize them at start-up, too.<br><br>Change-Id: I81b2a8ef3284559164700d94717e4ccf008f53df<br>---<br>M firmware/libcommon/source/card_emu.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/42/23642/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/firmware/libcommon/source/card_emu.c b/firmware/libcommon/source/card_emu.c</span><br><span>index 216ffe3..0ba6eb0 100644</span><br><span>--- a/firmware/libcommon/source/card_emu.c</span><br><span>+++ b/firmware/libcommon/source/card_emu.c</span><br><span>@@ -1264,6 +1264,9 @@</span><br><span>        ch->atr.len = sizeof(default_atr);</span><br><span>        memcpy(ch->atr.atr, default_atr, ch->atr.len);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+      ch->pts.state = PTS_S_WAIT_REQ_PTSS;</span><br><span style="color: hsl(120, 100%, 40%);">+       ch->tpdu.state = TPDU_S_WAIT_CLA;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>       card_handle_reset(ch);</span><br><span> </span><br><span>   tc_etu_init(ch->tc_chan, ch);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/simtrace2/+/23642">change 23642</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/simtrace2/+/23642"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I81b2a8ef3284559164700d94717e4ccf008f53df </div>
<div style="display:none"> Gerrit-Change-Number: 23642 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: Jenkins Builder </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>