 #define RETRY_LIMIT 9  // maximum number of times to retry
 #define RADIO_SYNC_MODE 2
 
-char importedConfig[] = 
+const char importedConfig[] PROGMEM = 
 ///
 /// Highlight the string below and paste in the value obtained from the RF12Demo "0j" command.
    "89D1066D49206939206732303920403836382E32323530204D487A0000006893";  //   0 I i9 g209 @868.2250 MHz

   if (good){
     if (scan > downHigh) downHigh = scan;
     if (scan < downLow) downLow = scan;
//     Serial.print("\n");
//     Serial.print(good);
     delay(50); 
   }
      else {
        Serial.print("No Ack ");
        Serial.print(scan);
        Serial.print("\r");
        delay(50); 
      }
  }
  if ((downHigh == 0) || (downLow == 0xFFFF)) return;  // If nobody answers then restart loop
Serial.print("Scan down complete "); 
Serial.print(downLow);
Serial.print("-");
Serial.println(downHigh);

        
 frequency = ( ((upLow + downLow) / 2) + ((((upHigh + downHigh) / 2) - ((upLow + downLow)/ 2)) / 2)   );
 Serial.print("Centre frequency offset is ");
 Serial.println(frequency);
 delay(50);
 config.ee_frequency_hi = frequency >> 8;
 config.ee_frequency_lo = frequency & 0x00FF;


  while(1) // Nothing more
  { 
     delay(32767);
  }
}
static byte getString (PGM_P s, byte i) {
    char c = pgm_read_byte(s + i);
    return c;
}
static void showString (PGM_P s) {
  for (;;) {
    char c = pgm_read_byte(s++);
    if (c == 0)
      break;
    if (c == '\n')
      Serial.print('\r');
    Serial.print(c);
  }
}

