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:
marian 2015-07-24 07:18:54 +00:00
parent 26df795fb0
commit 5265e4d8e5
1 changed files with 1 additions and 1 deletions

View File

@ -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);