<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13755">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trx_toolkit/data_msg.py: fix TOA256 MIN/MAX constants<br><br>The old TOA256 range was bigger than we can actually store:<br><br>  struct.error: 'h' format requires -32768 <= number <= 32767<br><br>Change-Id: I5d4e1fea9d07f2c49f01e6644d1c0d1dc8cf4e40<br>---<br>M src/target/trx_toolkit/data_msg.py<br>1 file changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/55/13755/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/target/trx_toolkit/data_msg.py b/src/target/trx_toolkit/data_msg.py</span><br><span>index 62fd29b..cd6796d 100644</span><br><span>--- a/src/target/trx_toolkit/data_msg.py</span><br><span>+++ b/src/target/trx_toolkit/data_msg.py</span><br><span>@@ -297,9 +297,9 @@</span><br><span>   RSSI_MIN = -120</span><br><span>      RSSI_MAX = -50</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-      # TODO: verify this range</span><br><span style="color: hsl(0, 100%, 40%);">-       TOA256_MIN = -256 * 200</span><br><span style="color: hsl(0, 100%, 40%);">- TOA256_MAX = 256 * 200</span><br><span style="color: hsl(120, 100%, 40%);">+        # -32768 <= TOA256 <= 32767</span><br><span style="color: hsl(120, 100%, 40%);">+     TOA256_MIN = -32768</span><br><span style="color: hsl(120, 100%, 40%);">+   TOA256_MAX = 32767</span><br><span> </span><br><span>       # Specific message fields</span><br><span>    rssi = None</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13755">change 13755</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/13755"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5d4e1fea9d07f2c49f01e6644d1c0d1dc8cf4e40 </div>
<div style="display:none"> Gerrit-Change-Number: 13755 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>