   }  /* while Serial */
 }
 
+#if defined(DPIN_OOK_RX)
 static void resetDecoder(void)
 {
   decoder.pos = 0;

    Serial.println();
  }
}

static void txSetup(void)
{

  txSetup();
  rxSetup();

  g_DiscoverPeriod = true;
  g_TxId = DEFAULT_TX_ID;
}

void loop()
{
  // Discover period ends after 5 minutes, then our TxId is locked
  g_DiscoverPeriod = g_DiscoverPeriod && millis() < (5 * 60 * 1000U);

  ookTx();
  ookRx();
  serial_doWork();
