   Serial.print(F(" dBm, Floor: ")); Serial.print(g_RxOokFloor, DEC);
 }
 
-static void decodeRxPacket(void)
+static void dumpRxData(void)
 {
 #if defined(DUMP_RX)
   for (uint8_t i=0; i<decoder.pos; ++i)

    khz = atol(buf);

  Serial.print(khz, DEC); Serial.println(F("kHz"));

  uint32_t val = khz * (524288.0 / 32000.0);
  rf69ook_writeReg(0x01, 0x04); // standby
  rf69ook_writeReg(0x07, (val >> 16) & 0xff);
  rf69ook_writeReg(0x08, (val >> 8) & 0xff);
  rf69ook_writeReg(0x09, val & 0xff);
  rf69ook_writeReg(0x01, 0x10); // RX
}

static void setRf69Thresh(uint8_t val)
{
#if defined(DUMP_RX)
  Serial.print(F("Errcount: ")); Serial.print(g_RxErrCnt, DEC);
  Serial.print(F(" OokFixedThresh="));
  Serial.println(val, DEC);
#endif
  rf69ook_writeReg(0x1d, val);
  g_RxOokFloor = val;
}

static void resetRf69(void)

    Serial.print(F("Energy: ")); Serial.print(g_RxWattHours, DEC);
    Serial.print(F(" Wh, Power: ")); Serial.print(g_RxWatts, DEC);
    Serial.print(F(" W, Temp: ")); Serial.print(g_RxTemperature, DEC);
    Serial.print(F(" F,"));
    printRssi();
    Serial.print(F(", LowBat: ")); Serial.println(g_RxFlags >> 7, DEC);

