       }
     }
     prevSetepPwr = rflPwrVal;
-    if ((fwdPwrVal == 0) || (rflPwrVal == 0)) {
+    if (((fwdPwrVal >> 4) == 0) || ((rflPwrVal >> 4) == 0)) {
       break;
     }
     isFirstStep = false;

}

void autoTune() {
  if ((fwdPwrVal == 0) || (isAutoTune)) {
    return;
  }
  isAutoTune = 1;

}

void fineTune() {
  if (((fwdPwrVal >> 4) == 0) || (isAutoTune)) {
    return;
  }
  isAutoTune = 1;
