<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25770">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tbf: Use define to flag control_ts unset special value<br><br>Change-Id: Idd3ccec509b40b6229544b45e54da1142805b6f9<br>---<br>M src/tbf.cpp<br>M src/tbf.h<br>2 files changed, 4 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/70/25770/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/tbf.cpp b/src/tbf.cpp</span><br><span>index 7ebd268..153ba80 100644</span><br><span>--- a/src/tbf.cpp</span><br><span>+++ b/src/tbf.cpp</span><br><span>@@ -96,7 +96,7 @@</span><br><span>     trx(NULL),</span><br><span>   first_ts(0),</span><br><span>         first_common_ts(0),</span><br><span style="color: hsl(0, 100%, 40%);">-     control_ts(0xff),</span><br><span style="color: hsl(120, 100%, 40%);">+     control_ts(TBF_CONTROL_TS_UNSET),</span><br><span>    fT(0),</span><br><span>       num_fT_exp(0),</span><br><span>       upgrade_to_multislot(false),</span><br><span>@@ -328,7 +328,7 @@</span><br><span> </span><br><span> int tbf_assign_control_ts(struct gprs_rlcmac_tbf *tbf)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-   if (tbf->control_ts == 0xff)</span><br><span style="color: hsl(120, 100%, 40%);">+       if (tbf->control_ts == TBF_CONTROL_TS_UNSET)</span><br><span>              LOGPTBF(tbf, LOGL_INFO, "Setting Control TS %d\n",</span><br><span>                         tbf->first_common_ts);</span><br><span>    else if (tbf->control_ts != tbf->first_common_ts)</span><br><span>diff --git a/src/tbf.h b/src/tbf.h</span><br><span>index 3aaf9fb..05beed5 100644</span><br><span>--- a/src/tbf.h</span><br><span>+++ b/src/tbf.h</span><br><span>@@ -116,6 +116,8 @@</span><br><span> #define GPRS_RLCMAC_FLAG_TO_DL_ACK    3 /* DL TBF: Failed to receive last polled DL ACK/NACK */</span><br><span> #define GPRS_RLCMAC_FLAG_TO_MASK   0xf0 /* timeout bits */</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#define TBF_CONTROL_TS_UNSET 0xff</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> #define T_START(tbf, t, T, r, f) tbf->t_start(t, T, r, f, __FILE__, __LINE__)</span><br><span> </span><br><span> #ifdef __cplusplus</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25770">change 25770</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/osmo-pcu/+/25770"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Idd3ccec509b40b6229544b45e54da1142805b6f9 </div>
<div style="display:none"> Gerrit-Change-Number: 25770 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>