<p>Vasil Velichkov would like Piotr Krysik and Vadim Yanitskiy to <strong>review</strong> this change.</p><p><a href="https://gerrit.osmocom.org/13672">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">grgsm_capture: Fix device arguments<br><br>We need a space between numchan=1 and the rest of the device arguments<br>otherwise when --args is specified it fails with RuntimeError: bad lexical cast<br><br>$ grgsm_capture --args=soapy<br><br>Traceback (most recent call last):<br>  File "/usr/local/bin/grgsm_capture", line 179, in <module><br>    device_args=options.device_args)<br>  File "/usr/local/bin/grgsm_capture", line 57, in __init__<br>    osmosdr.source(args="numchan=1" + device_args )<br>  File "/usr/local/lib64/python2.7/site-packages/osmosdr/osmosdr_swig.py", line 1170, in make<br>    return _osmosdr_swig.source_make(*args, **kwargs)<br>RuntimeError: bad lexical cast: source type value could not be interpreted as target<br><br>Change-Id: I2d1bcee835b695c91a5c44ec78a40b2d969f611c<br>---<br>M apps/helpers/grgsm_capture<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/gr-gsm refs/changes/72/13672/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/helpers/grgsm_capture b/apps/helpers/grgsm_capture</span><br><span>index f698205..081544a 100755</span><br><span>--- a/apps/helpers/grgsm_capture</span><br><span>+++ b/apps/helpers/grgsm_capture</span><br><span>@@ -54,7 +54,8 @@</span><br><span>         ##################################################</span><br><span> </span><br><span>         self.sdr_source = \</span><br><span style="color: hsl(0, 100%, 40%);">-                    osmosdr.source(args="numchan=1" + device_args )</span><br><span style="color: hsl(120, 100%, 40%);">+                    osmosdr.source(args="numchan=" + str(1) + " " + device_args)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         self.sdr_source.set_sample_rate(samp_rate)</span><br><span>         self.sdr_source.set_center_freq(freq, 0)</span><br><span>         self.sdr_source.set_freq_corr(freq_corr, 0)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13672">change 13672</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/13672"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: gr-gsm </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2d1bcee835b695c91a5c44ec78a40b2d969f611c </div>
<div style="display:none"> Gerrit-Change-Number: 13672 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vasil Velichkov <vvvelichkov@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Piotr Krysik <ptrkrysik@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>