Fixed bug: use proper operator to mask freq offset.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6008 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
26df795fb0
commit
5265e4d8e5
|
@ -4121,7 +4121,7 @@ unsigned int BrfLibUsbDevice::internalSetFreqOffs(int val, int* newVal, String*
|
|||
{
|
||||
val = clampInt(val,BRF_FREQ_OFFS_MIN,BRF_FREQ_OFFS_MAX,"FrequencyOffset");
|
||||
String e;
|
||||
unsigned int status = gpioWrite(0x22,(val && 0xff) << 8,2,&e);
|
||||
unsigned int status = gpioWrite(0x22,(val & 0xff) << 8,2,&e);
|
||||
if (status == 0) {
|
||||
if (m_freqOffset != val) {
|
||||
Debug(m_owner,DebugInfo,"FrequencyOffset set to %d [%p]",val,m_owner);
|
||||
|
|
Loading…
Reference in New Issue